Eclipse 调试器错误:求值必须包含表达式...

Ale*_*uya 5 eclipse generics debugging breakpoints

private Binding createImplicitBinding(Key<?> key, boolean optional) {

    JClassType rawClassType = keyUtil.getRawClassType(key);

    if (rawClassType.equals(ginjectorInterface)) {
       return ginjectorBindingProvider.get();
    }
     ......
 }
Run Code Online (Sandbox Code Playgroud)

if (rawClassType.equals(ginjectorInterface))对于上面的代码片段,我在with condition处设置了一个断点rawClassType==null,希望线程仅在满足条件时才会挂起。但我不断收到错误:

eclipse 求值必须包含一个表达式

谁能告诉我为什么?顺便说一下,JClassType 是接口。

wrs*_*der 3

这可能是一个与它自己的解析器如何处理泛型类型相关的 Eclipse bug,就像Key<?>上面那样。

https://bugs.eclipse.org/bugs/show_bug.cgi?id=344856

不过,该解决方法似乎对我不起作用 - 并且似乎也不适用于您的示例。