[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jdt-apt-dev] Only getting RECONCILE calls to process()
|
It was a typo.
My AnnotationProcessor is a plugin, but I don't have access to the
EclipseAnnotationProcessorEnvironment any-ways. And the quick-fix
suggest I change what may/may not be accessed "change access rules...".
But going where it leads me, I see that I cannot change this (it says
"not modifiable". I have read/write access the the whole "eclipse" dir.
I have found the build problem now (I think). When running the "Java
Builder" on my project I get errors in the ErrorLog:
java.lang.NullPointerException
at
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.storedAnnotations(SourceTypeBinding.java:1434)
at
org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.storeAnnotationHolder(ReferenceBinding.java:1125)
at
org.eclipse.jdt.internal.compiler.lookup.MethodBinding.<init>(MethodBinding.java:61)
at
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.getUpdatedMethodBinding(SourceTypeBinding.java:1074)
at
org.eclipse.jdt.internal.compiler.ast.MessageSend.manageSyntheticAccessIfNecessary(MessageSend.java:226)
at
org.eclipse.jdt.internal.compiler.ast.MessageSend.analyseCode(MessageSend.java:63)
at
org.eclipse.jdt.internal.compiler.ast.ForeachStatement.analyseCode(ForeachStatement.java:105)
at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration.java:84)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.internalAnalyseCode(TypeDeclaration.java:673)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.analyseCode(TypeDeclaration.java:256)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(CompilationUnitDeclaration.java:106)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:597)
at
org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:689)
at
org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:466)
at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:707)
at
org.eclipse.jdt.apt.core.internal.env.BaseProcessorEnv.createASTs(BaseProcessorEnv.java:820)
at
org.eclipse.jdt.apt.core.internal.env.BuildEnv.createASTs(BuildEnv.java:381)
at
org.eclipse.jdt.apt.core.internal.env.AbstractCompilationEnv.newBuildEnv(AbstractCompilationEnv.java:84)
at
org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.build(APTDispatchRunnable.java:223)
at
org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.run(APTDispatchRunnable.java:170)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
at
org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.runAPTDuringBuild(APTDispatchRunnable.java:86)
at
org.eclipse.jdt.apt.core.internal.AptCompilationParticipant.processAnnotations(AptCompilationParticipant.java:157)
at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.processAnnotations(AbstractImageBuilder.java:509)
at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:274)
at
org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:59)
at
org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:249)
at
org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:174)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:607)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:162)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:196)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:225)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:228)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:247)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:280)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:145)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
So I guess this is why the JDT-APT is never run at BUILD phase, it
simply fails with a silent NullPointerException. The weird thing is that
none of the other projects fail this way.
./Emanuel
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature