Community
Participate
Working Groups
HEAD I'll attach the CU to reproduce (just open it in a java editor and move the caret around). !ENTRY org.eclipse.jdt.ui 4 0 2006-03-22 19:40:03.410 !MESSAGE Error in JDT Core during AST creation !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.codegen.CodeStream.invokespecial(CodeStream.java:4191) at org.eclipse.jdt.internal.compiler.ast.MessageSend.generateCode(MessageSend.java:128) at org.eclipse.jdt.internal.compiler.ast.Expression.generateOptimizedBoolean(Expression.java:653) at org.eclipse.jdt.internal.compiler.ast.IfStatement.generateCode(IfStatement.java:149) at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:229) at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:176) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:540) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:591) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:214) at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:884) at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:506) at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:833) at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:631) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:596) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:593) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:513) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:502) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:155) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$3.run(SelectionListenerWithASTManager.java:140) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Created attachment 36756 [details] X.java
Compiles fine with HEAD. [compiled 51 lines in 981 ms: 51.9 lines/s] ---------- 1. ERROR in D:\tests_sources\X.java (at line 29) private int zzz() { ^^^^^ This method must return a result of type int ---------- 2. ERROR in D:\tests_sources\X.java (at line 38) if(xxx()) ^^^ The method xxx() is undefined for the type X ---------- 3. ERROR in D:\tests_sources\X.java (at line 45) private bo xxx() { ^^ bo cannot be resolved to a type ---------- 3 problems (3 errors) Looks like another dup of bug 132813. *** This bug has been marked as a duplicate of 132813 ***
Your code compiles fine with the build I20060322-1335.