Closed mickaelistria closed 3 weeks ago
@jjohnstn @iloveeclipse What do you think?
How to test
- Create a basic Java Project and a basic Java file in it
- Verify there is no error
- Edit the .settings/org.eclipse.jdt.core.prefs, set the value of
org.eclipse.jdt.core.compiler.compliance
to24
(basically last version support by ECJ + 1).- Reopen the file, edit => a warning is now shown "Java language version '24' is not supported, using version '23' instead"
If the PR would contain a JUnit that demonstrates the desired behavior i would be confident to merge.
If the PR would contain a JUnit that demonstrates the desired behavior i would be confident to merge.
Ack. I'll be back at it shortly.
I added a test case.
LGTM. With the initial review's issue being addressed plus a test case added as requested by @jukzi, I am merging.
Fixes https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3018
What it does
Create a warning when options specify a new Java source version
How to test
org.eclipse.jdt.core.compiler.compliance
to24
(basically last version support by ECJ + 1).Author checklist