Bug 253173

Summary: [compiler] NPE in ConstructorDeclaration
Product: [Eclipse Project] JDT Reporter: Alexei Goncharov <alexei.goncharov>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann, philippe_mulet, srikanth_sankaran
Version: 3.4.1Keywords: needinfo
Target Milestone: 3.6 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Alexei Goncharov CLA 2008-11-03 07:26:31 EST
-- Error Details --
Date: Fri Oct 31 13:40:14 EET 2008
Message: Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
Severity: Error
Plugin: org.eclipse.jdt.ui
Session Data:
eclipse.buildId=M20080911-1700
java.version=1.6.0_07
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=uk_UA
Command-line arguments:  -os win32 -ws win32 -arch x86


Exception Stack Trace:
java.lang.NullPointerException
at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.isRecursive(ConstructorDeclaration.java:385)
at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.isRecursive(ConstructorDeclaration.java:385)
at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.analyseCode(ConstructorDeclaration.java:70)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.internalAnalyseCode(TypeDeclaration.java:667)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.analyseCode(TypeDeclaration.java:253)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(CompilationUnitDeclaration.java:118)
at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:868)
at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:518)
at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:880)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:656)
at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:540)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:533)
at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:474)
at org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:129)
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:168)
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$3.run(SelectionListenerWithASTManager.java:153)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Philipe Mulet CLA 2008-11-03 08:32:33 EST
Please provide steps to reproduce. This stacktrace would indicate an issue while trying to figure if a constructor is referring to itself recursively (through the constructor call chain).

Comment 2 Philipe Mulet CLA 2008-11-03 08:40:17 EST
Given bug 253172, could it be still a VM issue ?
Comment 3 Alexei Goncharov CLA 2008-11-03 08:48:40 EST
Referring both to this and 253172.
Really I can't give the steps to reproduce. It happens time to time while working. These errors are written to error log silently, so I event can't imagine, when they occur.
Donno if it can be the VM issue.
Comment 4 Philipe Mulet CLA 2008-11-03 10:08:48 EST
Bug 253172 really feels a VM bug, since the offending line is not able to throw a NPE. The present bug though could in theory raise a NPE, except that the scenario should not reach down that path, due to check for error prior to it (the null case could only occur in presence of an error).

Can you try a different VM and see if the problems occur again ?
Until then, there is not much we can do here (in the absence of steps).
Comment 5 Olivier Thomann CLA 2010-01-22 13:09:11 EST
Closing as WORKSFORME.
Please reopen if you get it again and can provide steps to reproduce.
Comment 6 Srikanth Sankaran CLA 2010-01-25 01:02:01 EST
Verified for 3.6M5