Community
Participate
Working Groups
I got a number of NPEs while compiling the Eclipse SDK source 3.8 M4 using JDT Core from master plus patch v0.6 from bug 358903. Ironically the NPEs occur in UnconditionalFlowInfo.markAsDefinitelyNull(...) java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.flow.UnconditionalFlowInfo.markAsDefinitelyNull(UnconditionalFlowInfo.java:1307) at org.eclipse.jdt.internal.compiler.ast.FakedTrackingVariable.handleResourceAssignment(FakedTrackingVariable.java:182) at org.eclipse.jdt.internal.compiler.ast.Assignment.analyseCode(Assignment.java:63) at org.eclipse.jdt.internal.compiler.ast.Block.analyseCode(Block.java:37) at org.eclipse.jdt.internal.compiler.ast.TryStatement.analyseCode(TryStatement.java:297) at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration.java:108) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.internalAnalyseCode(TypeDeclaration.java:710) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.analyseCode(TypeDeclaration.java:255) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(CompilationUnitDeclaration.java:111) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:776) at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137) at java.lang.Thread.run(Thread.java:736)
This is because of a problem in the patch in bug 358903. Should be fixed there. Closing this one.
(In reply to comment #1) > This is because of a problem in the patch in bug 358903. Should be fixed there. > Closing this one. Stephan, Is this patch superceded by another that doesn't exhibit this problem ?
(In reply to comment #2) > (In reply to comment #1) > > This is because of a problem in the patch in bug 358903. Should be fixed there. > > Closing this one. > > Stephan, Is this patch superceded by another that doesn't exhibit this > problem ? After putting up that question, I noticed that this is being discussed in bug 358903. Will catch up on the discussion there.
Verified for 3.8M5 using build I20120122-2000