Skip to content

Conversation

@mickaelistria
Copy link
Contributor

What it does

Provides some capability for environments that are not yet statically described in JDT.

This is a step towards
#661

How to test

Just ensure no regressions.
Because further guards are in place (eg checking Compiler support for given EE compliance), this would usually be a no-op as for the EE to be returned by the EEManager, the compiler must also declare support for next version.

Author checklist

Provides some capability for environments that are not yet statically
described in JDT.

This is a step towards
eclipse-jdt#661
@SougandhS SougandhS requested a review from iloveeclipse April 10, 2025 12:29
} else if (desc.indexOf("1.0") != -1) { //$NON-NLS-1$
return "1.0"; //$NON-NLS-1$
} else {
// an optimistic strategy for not-yet-declared versions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That produces 1 from 25.0.1, and that is really guessing...
I'm not sure this is the right way to guess the version out of EE.
The entire method looks like a big hack.
Why can't we add an extra "JavaCompliance" attribute to org.eclipse.jdt.launching.executionEnvironments extension point and specify there all what we need?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That produces 1 from 25.0.1, and that is really guessing..

The current code would also return 24 for 1.0.24, so it's not so much worse...

Why can't we add an extra "JavaCompliance" attribute to org.eclipse.jdt.launching.executionEnvironments extension point and specify there all what we need?

We sure can, but usually, this happens on a branch that takes ages before it is merged...

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.

2 participants