Eclipse debugger error: evaluations must contain either expression ...

private Binding createImplicitBinding(Key<?> key, boolean optional) { JClassType rawClassType = keyUtil.getRawClassType(key); if (rawClassType.equals(ginjectorInterface)) { return ginjectorBindingProvider.get(); } ...... } 

In the above snippet, I set a breakpoint in if (rawClassType.equals(ginjectorInterface)) with the condition rawClassType==null , hoping that the thread will only be suspended when it is executed. But I keep getting the error:

eclipse Grades must contain either an expression

Can someone tell me why? By the way, JClassType is an interface.

+4
source share
1 answer

It could be an Eclipse bug related to how its own parser handles generic types, for example, Key<?> Above.

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

The workaround doesn't seem to work for me, though - and doesn't seem to apply to your example either.

+2
source

Source: https://habr.com/ru/post/1381712/


All Articles