Community
Participate
Working Groups
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)
What build are you using ? If you have steps to reproduce that would be helpful.
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.
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.
There is no plan to backport to 3.3.0.
Verified.