Community
Participate
Working Groups
I20081111-0800 1. checkout org.eclipse.workbench 2. open TwoPaneElementSelector 3. replace it with attached source ==> many errors in .log and error marker: Internal compiler error java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.checkAgainstInheritedMethods(MethodVerifier.java:172) at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.checkMethods(MethodVerifier.java:445) at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.verify(MethodVerifier.java:875) at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.verifyMethods(SourceTypeBinding.java:1605) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.verifyMethods(CompilationUnitScope.java:794) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:740) at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137) at java.lang.Thread.run(Thread.java:619) TwoPaneElementSelector.java org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs line 0 Java Problem
Created attachment 117658 [details] Broken source
Kent - does it also occur in 3.4.1 ?
This type has 2 methods named validateCurrentSelection & the first has no return type. Before the change for bug 146768 (fix was only released into 3.5M3 on Oct.17), the verifier never saw the method with no return type, since both methods were tossed. We need to ensure that any method without a return type is not kept. I'll try to keep the second duplicate method, but if its too tricky I'll throw both away like we did before.
Created attachment 117699 [details] Proposed patch with testcase With this patch we keep the first duplicate method that has a return type to avoid reporting secondary errors if we remove all the duplicates.
Fix and test released for 3.5M4
Verified for 3.5M4 using I20081208-1800