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 #9

Open
TiMauzi opened this issue Mar 10, 2021 · 1 comment
Open

ClassCastException #9

TiMauzi opened this issue Mar 10, 2021 · 1 comment

Comments

@TiMauzi
Copy link

TiMauzi commented Mar 10, 2021

Hello there,

I tried using version 1.1.2. I installed java-oo on my Intellij IDEA and copy-pasted Example1 of yours. Now, the operators (*, +) are marked as wrong by the IDE (with the warning: Operator '*' cannot be applied to 'symjava.symbolic.Symbol', 'symjava.symbolic.Symbol'"). When I try to compile, there is the following error:

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

Do you have an idea what might have gone wrong here? I am using Intellij IDEA 2020.3.2 (Ultimate Edition) with Java 15.0.1.

@yuemingl
Copy link
Owner

You may checkout this: https://github.com/amelentev/java-oo#IDEA

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