Bug in annotation processing?
Peter Major
peter.major at forgerock.com
Sun Oct 22 01:27:18 UTC 2017
Hi,
I'm running into a strange problem with javac, whereby the internal
state of the Modules object gets messed up and compilation blows up with
an assertion error:
AssertionError
at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)
at jdk.compiler/com.sun.tools.javac.util.Assert.check(Assert.java:46)
at jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:250)
I've been trying to track this one down, and so far the only thing I can
see is that the Modules state is initialized correctly, then there is a
newRound call clearing out everything, then Modules inits everything
again, then there is a newRound call from:
[3]
com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.finalCompiler
(JavacProcessingEnvironment.java:1,099)
and the next thing I know is Modules#enter blows up because rootModules
is null. (The correct state would be [unnamed module].)
Is this sufficient amount of information for a bug report, or does this
issue ring a bell for anyone?
Apologies if this is not the right forum.
Best Regards,
Peter Major
More information about the compiler-dev
mailing list