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

ClassCastException #67

Closed
TiMauzi opened this issue Mar 12, 2021 · 2 comments
Closed

ClassCastException #67

TiMauzi opened this issue Mar 12, 2021 · 2 comments

Comments

@TiMauzi
Copy link

TiMauzi commented Mar 12, 2021

Using Intellij IDEA 2020.3.2 (Ultimate), I followed the instructions given for Intellij IDEA IDE on a fresh test project, using the javac8-oo-plugin-0.5.jar. I copy-pasted the example into a fresh class Test.java.

When I try compiling (using Java 15.0.1), the following exception appears:

java: java.lang.ClassCastException: class com.sun.proxy.$Proxy21 cannot be cast to class com.sun.tools.javac.processing.JavacProcessingEnvironment (com.sun.proxy.$Proxy21 is in unnamed module of loader java.net.URLClassLoader @2ff4acd0; com.sun.tools.javac.processing.JavacProcessingEnvironment is in module jdk.compiler of loader 'app')

What may be gone wrong?

@amelentev
Copy link
Owner

You need to use the java 8 compiler. There is no support for java versions above 8.

@amelentev
Copy link
Owner

#59

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

2 participants