-
Notifications
You must be signed in to change notification settings - Fork 317
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
Support for Java 21 #3037
Support for Java 21 #3037
Conversation
A few comments:
One further possibility for Maven projects when selecting Java 21 in the wizard would be to generate the".mvn/maven.config" file. However, I seem to understand that this solution is temporary anyway: when we switch to Java 17 as the minimal requirement, the BOM profile is not needed anymore. |
Another small note: the GitHub Actions |
what are the org.eclipse.draw2d changes for? |
It's documented in the tests: it's to access a java record from an existing library. JDK itself doesn't provide any in my findings. |
there are some rare ones e.g. UnixDomainPrincipal one in MXBean |
But is that available on all platforms? I felt safer using something like the one from draw2d, which is in our target platform anyway. It's a temporary solution until we use Java 21 in Eclipse. However, I have to remove the lower bound to let it also build with the older platform: in Jenkins, it cannot resolve the latest draw2d |
@cdietrich I removed the lower bound for draw2d to let the build work also on older target platform. Of course, if you don't like this temporary solution I can also try with UnixDomainPrincipal |
maybe now that we are in a monorepo. maybe we can reconsider a single testdata bundle for jvm stuff |
I think we already have something like that: That's why I was considering mine as a temporary solution. |
i see. maybe we use draw2d for now and something else later. |
Yes, that's what I was proposing as well. |
Argh! There's a compilation failure in Jenkins:
We're using an old version of JDT in that old target platform... |
this is why we in the past partially used reflection |
@@ -22,6 +22,5 @@ | |||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/> | |||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/> | |||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/> | |||
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7/"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting to see what we still had in some of the config files.
9a8e43d
to
8e4c424
Compare
At least for the moment...
The profile must be activated through the system property "java-21" either on the command line "-Djava-21", or by creating the file "maven.config" inside the folder ".mvn" at the root of the project, with the content "-Djava-21"
To allow for builds with older target platforms
To let it compile with older target platforms
8e4c424
to
8f6d1a3
Compare
@LorenzoBettini doesnt https://ci.eclipse.org/xtext/job/xtext-monorepo-full-deploy-nightly/ start automatically anymore? |
@cdietrich It is triggered by https://ci.eclipse.org/xtext/job/xtext/job/main/ upon success build. It has built: https://ci.eclipse.org/xtext/job/xtext-monorepo-full-deploy-nightly/273/ Of course, slowness of JIRO doesn't help ;) |
@LorenzoBettini i started it manually |
@LorenzoBettini runniing JavaSourceLanguageTest with the record i dont see |
That's strange... indeed I see in the main job
|
It worked yesterday though: https://ci.eclipse.org/xtext/job/xtext/job/main/1138/console |
But the test succeeds and the corresponding class is found. |
@LorenzoBettini this test wll do nothing. |
=> maybe a installFull vs installStub thing |
gralde trace
|
JavaConfig javaConfig = new JavaConfig(); called too late and should be moved into this.resourceSet |
Closes #2823
Addresses most of #2686