forked from eclipse-jdt/eclipse.jdt.core
-
Notifications
You must be signed in to change notification settings - Fork 1
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
No respect for --release flag #1162
Comments
Are you sure the project has the "release" setting enabled? |
JDT's CompilerOptions is enforcing OPTION_Release to "disabled". This has to be fixed. |
There are (at least) 2 issues:
|
The JavacCompiler must be using JavacTool.getTask() to ensure proper arguments being passed. |
Should be fixed with #1168 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following java file in a project:
produces
but the project has Java -17 JVM (a real 17 JVM) but the deprecation warnings shouldn't be there with --release 17 .
Console usage of javac gives (warning on Java 21 but not on 17):`
The text was updated successfully, but these errors were encountered: