Eclipse Luna(R):没有内容帮助Java 8方法引用 [英] Eclipse Luna (R): no content assist for Java 8 method references

查看:84
本文介绍了Eclipse Luna(R):没有内容帮助Java 8方法引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse Java EE IDE for Web Developers。
版本:Luna发行(4.4.0)
构建ID:20140612-0600






I '使用Eclipse Luna for Java(Java EE)的发布版本,似乎没有内容帮助新的Java 8样式的方法引用。在下面的示例中,我在::之后按Ctrl-Space,期望看到类 Match 上可用的方法列表。相反,我只是得到一些通用的模板辅助,即使我循环浏览所有的辅助菜单。正常的内容辅助方法工作正常,只是Java 8方法引用(:) :)不起作用。





这应该是工作吗?如果没有,为什么不呢?按设计?错误?

解决方案

看起来这可能是Eclipse错误 430656



方法参考内容辅助在某些地方工作,但不在调用上下文中。


Eclipse Java EE IDE for Web Developers. Version: Luna Release (4.4.0) Build id: 20140612-0600


I'm using the release version of Eclipse Luna for Java (Java EE), and it seems that there's no content assist for the new Java 8-style method references. In the example below, I hit Ctrl-Space after the '::', expecting to see the list of methods available on the class Match. Instead I just get some generic template assist, even if I cycle through all the assist menus. Normal content assist on methods work fine, it's just Java 8 method references (::) that don't work.

Is this supposed to work? If not, why not? By design? Bug?

解决方案

Looks like this might be Eclipse bug 430656.

Method reference content assist does work in some places but not in 'invocation contexts'.

这篇关于Eclipse Luna(R):没有内容帮助Java 8方法引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆