Community
Participate
Working Groups
HEAD: NPE when asking an IMethodBinding whether it overrides itself: java.lang.NullPointerException at org.eclipse.jdt.core.dom.MethodBinding.overrides(MethodBinding.java:409) ...
Jérôme, It is possible that the compilationUnitResolver on DefaultBindingResolver is null. To reproduce add this line at the end of test0081 in ASTConverter15Test. assertFalse("Doesn't override itself", methodBinding.overrides(methodBinding));
Changed DefaultBindingResolver to store the lookup environment instead of the CompilationUnitResolver. Added regression test CompatibilityRulesTests#test022()
Verified for 3.1 M4 using build I200412142000 + ASTView 1.0.2.