Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalStateException when compiling with java-power-assert #7

Open
RichardBradley opened this issue May 31, 2017 · 0 comments
Open

Comments

@RichardBradley
Copy link

I'm trying to use java-power-assert on my Java 8 project.
The project has a few other annotation processors active.

I can't post the code here, but I can do any follow up investigation that might be necessary.

Here's the error I'm getting from mvn test:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project my-project: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR]
[ERROR]
[ERROR] An annotation processor threw an uncaught exception.
[ERROR] Consult the following stack trace for details.
[ERROR] java.lang.IllegalStateException
[ERROR] at com.sun.tools.javac.util.Context.checkState(Context.java:225)
[ERROR] at com.sun.tools.javac.util.Context.get(Context.java:146)
[ERROR] at com.sun.tools.javac.tree.TreeMaker.instance(TreeMaker.java:55)
[ERROR] at org.powerassert.javac.JavacPowerAssertGenerator.scan(JavacPowerAssertGenerator.java:59)
[ERROR] at org.powerassert.PowerAssertProcessor.process(PowerAssertProcessor.java:54)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
[ERROR] at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
[ERROR] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:523)
[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:381)
[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:370)
[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:361)
[ERROR] at com.sun.tools.javac.Main.compile(Main.java:74)

Can you tell what's wrong from this info alone?

How can I gather more information to diagnose this problem? There doesn't seem to be enough info here to diagnose yet.

Thanks,

Rich

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant