Bug 132877 - NPE in CodeStream.invokespecial
Summary: NPE in CodeStream.invokespecial
Status: VERIFIED DUPLICATE of bug 132813
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-22 13:41 EST by Markus Keller CLA
Modified: 2006-03-23 05:40 EST (History)
0 users

See Also:


Attachments
X.java (632 bytes, text/plain)
2006-03-22 13:42 EST, Markus Keller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2006-03-22 13:41:20 EST
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)
Comment 1 Markus Keller CLA 2006-03-22 13:42:27 EST
Created attachment 36756 [details]
X.java
Comment 2 Olivier Thomann CLA 2006-03-22 13:45:57 EST
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 ***
Comment 3 Olivier Thomann CLA 2006-03-22 14:40:48 EST
Your code compiles fine with the build I20060322-1335.