Bug 345584 - NPE in SourceTypeBinding.java
Summary: NPE in SourceTypeBinding.java
Status: VERIFIED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7 RC1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 07:34 EDT by Chris Frost CLA
Modified: 2011-05-13 13:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Frost CLA 2011-05-12 07:34:28 EDT
We use JDT to build the Virgo project at the command line and have started hitting the following problem. We will continue to try and find the cause ourselves of course but the error output from JDT could be a little more helpful.

     [exec]   [s:javac] 1. ERROR in /Users/cgfrost/Repos/eclipse/kernel/org.eclipse.virgo.kernel.model/src/main/java/org/eclipse/virgo/kernel/model/management/internal/JmxArtifactRepositoryListener.java (at line 0)
     [exec]   [s:javac] 	/*******************************************************************************
     [exec]   [s:javac] 	^
     [exec]   [s:javac] Internal compiler error
     [exec]   [s:javac] java.lang.NullPointerException
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1302)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.visit(AnnotationDiscoveryVisitor.java:58)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.ast.Argument.traverse(Argument.java:145)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.visit(AnnotationDiscoveryVisitor.java:80)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.traverse(ConstructorDeclaration.java:457)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1222)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:518)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundEnvImpl.<init>(RoundEnvImpl.java:56)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:148)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:663)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:374)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:3410)
     [exec]   [s:javac] 	at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1607)
     [exec]   [s:javac] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec]   [s:javac] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [exec]   [s:javac] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [exec]   [s:javac] 	at java.lang.reflect.Method.invoke(Method.java:597)
     [exec]   [s:javac] 	at org.eclipse.jdt.core.JDTCompilerAdapter.execute(JDTCompilerAdapter.java:79)
Comment 1 Olivier Thomann CLA 2011-05-12 07:58:20 EDT
What build are you using ?
If you have steps to reproduce that would be helpful.
Comment 2 Stephan Herrmann CLA 2011-05-12 08:01:32 EDT
What exact version of the JDT are you using?

In current versions of org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor
I don't see any executable code on line 58 (and that class hasn't been
edited for two years.
Comment 3 Chris Frost CLA 2011-05-12 08:02:41 EDT
Hi,

We got a little further, seems we are using an old version in our build, 3.3.0. We just tried it with 3.6.2 and it is working there. Apologies for the premature bug opening.

Happy to provide reproduction steps if you still want them, I'll just have to push the git repo I'm in first for you to clone and run the build from.
Comment 4 Olivier Thomann CLA 2011-05-12 09:47:40 EDT
There is no plan to backport to 3.3.0.
Comment 5 Olivier Thomann CLA 2011-05-13 13:20:54 EDT
Verified.