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

Create warning when parsing targets too new Java versions #3020

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mickaelistria
Copy link
Contributor

Fixes #3018

What it does

Create a warning when options specify a new Java source version

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 to 24 (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"

Author checklist

@mickaelistria mickaelistria force-pushed the warn-too-new-java branch 4 times, most recently from e09fd55 to 0fcb964 Compare September 27, 2024 15:36
@mickaelistria
Copy link
Contributor Author

@jjohnstn @iloveeclipse What do you think?

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

Successfully merging this pull request may close these issues.

Using ECJ parser targetting newer -source version should emit a warning
2 participants