-
Notifications
You must be signed in to change notification settings - Fork 79
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
Changes needed to work with Java 24 #2623
Comments
Here's another problem with Java 24 that causes loading of p2 update sites to fail: I think we'd need to set properties in org.eclipse.equinox.internal.p2.persistence.XMLParser.getParser() where the parser is created. This demonstrates that the properties are respected when set (to some very small value) so some variation of this should work: |
Since Java-24 the security-manager cannot be used anymore and launching a Java-24 VM fails to launch if the argument '-Djava.security.manager=allow' is set. Part of eclipse-platform/eclipse.platform.releng.aggregator#2623
Since Java-24 the security-manager cannot be used anymore and launching a Java-24 VM fails to launch if the VM-argument '-Djava.security.manager=allow' is specified. Part of eclipse-platform/eclipse.platform.releng.aggregator#2623
Since Java-24 the security-manager cannot be used anymore and launching a Java-24 VM fails to launch if the VM-argument '-Djava.security.manager=allow' is specified. Part of eclipse-platform/eclipse.platform.releng.aggregator#2623
This avoids trowing+catching an UnsupportedOperationException and additional (error) logs if setting a SecurityManager is disallowed. The latter breaks ant-tests that check the log output. Part of eclipse-platform/eclipse.platform.releng.aggregator#2623
This avoids trowing+catching an UnsupportedOperationException and additional (error) logs if setting a SecurityManager is disallowed. The latter breaks ant-tests that check the log output. Part of eclipse-platform/eclipse.platform.releng.aggregator#2623
One advantage of disabling the
On the other hand, one disadvantage when running on Java-17 and disabling a Don't want to judge the severity of the latter (given that most EPP packages run on 21), but ideally we would just remove existing |
This avoids trowing+catching an UnsupportedOperationException and additional (error) logs if setting a SecurityManager is disallowed. The latter breaks ant-tests that check the log output. Part of eclipse-platform/eclipse.platform.releng.aggregator#2623
This avoids trowing+catching an UnsupportedOperationException and additional (error) logs if setting a SecurityManager is disallowed. The latter breaks ant-tests that check the log output. Part of eclipse-platform/eclipse.platform.releng.aggregator#2623
Please note failure eclipse-platform/eclipse.platform#1660, which is likely related |
- Define an unconfigure touchpoint to remove -Djava.security.manager=allow from the eclipse.ini which is done to ensure that updates will leave installations in a state that can run with Java 24. - Do the above for both products and ensure that both products specify -Dosgi.requiredJavaVersion=21 eclipse-platform#2623
- Define an unconfigure touchpoint to remove -Djava.security.manager=allow from the eclipse.ini which is done to ensure that updates will leave installations in a state that can run with Java 24. - Do the above for both products and ensure that both products specify -Dosgi.requiredJavaVersion=21 eclipse-platform#2623
- Define an unconfigure touchpoint to remove -Djava.security.manager=allow from the eclipse.ini which is done to ensure that updates will leave installations in a state that can run with Java 24. - Do the above for both products and ensure that both products specify -Dosgi.requiredJavaVersion=21 eclipse-platform#2623
- Define an unconfigure touchpoint to remove -Djava.security.manager=allow from the eclipse.ini which is done to ensure that updates will leave installations in a state that can run with Java 24. - Do the above for both products and ensure that both products specify -Dosgi.requiredJavaVersion=21 eclipse-platform#2623
- Define an unconfigure touchpoint to remove -Djava.security.manager=allow from the eclipse.ini which is done to ensure that updates will leave installations in a state that can run with Java 24. - Do the above for both products and ensure that both products specify -Dosgi.requiredJavaVersion=21 eclipse-platform#2623
- Define an unconfigure touchpoint to remove -Djava.security.manager=allow from the eclipse.ini which is done to ensure that updates will leave installations in a state that can run with Java 24. - Do the above for both products and ensure that both products specify -Dosgi.requiredJavaVersion=21 #2623
The latest early access version of Java 24, i.e, 24+26 fails to start when
-Djava.security.manager=allow
is specified. I.e., eclipse quietly fails to start; via the console we see why/how it fails to start:That option is specified in the eclipse.ini and is used in quite a few places (in the Platform SDK setup):
Even if we were to remove this option from the product, existing installations would retain the option in the eclipse.ini when updating.
Starting with
-Djava.security.manager=disallow
allows the IDE to start, though it's not so pretty!For further testing, I provisioned the Oomph Platform SDK setup using Java 24 and specifying
-Djava.security.manager=disallow
. That mostly works fine:I think we shouldn't be logging error from Ant when failing to set the security manager is an expected thing.
I think in preparation for upcoming releases of Java we should use
-Djava.security.manager=disallow
and fix any problems related to that.Note
sun.misc.Unsafe
will become a bigger problem eventually--enable-native-access=ALL-UNNAMED
will eventually be neededLocate EA versions of Java 24:
https://api.adoptium.net/v3/assets/feature_releases/24/ea?image_type=jdk&jvm_impl=hotspot&project=jdk&vendor=eclipse
The text was updated successfully, but these errors were encountered: