Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Java SE '21' is not fully supported yet(When will support be official?)
Java SE '21' is not fully supported yet [message #1867647] Wed, 03 July 2024 07:20 Go to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 825
Registered: July 2009
Senior Member
I've just upgraded to eclipselink 4.0.3 expecting J21 support, but apparently that is not the case. Are there any plans on release J21 support?
Re: Java SE '21' is not fully supported yet [message #1867650 is a reply to message #1867647] Wed, 03 July 2024 07:32 Go to previous messageGo to next message
Lukas JungmannFriend
Messages: 42
Registered: November 2013
Location: Prague, Czech Republic
Member
Quote:
I've just upgraded to eclipselink 4.0.3 expecting J21 support, but apparently that is not the case.


do you mind sharing why do you think so?
Re: Java SE '21' is not fully supported yet [message #1867653 is a reply to message #1867647] Wed, 03 July 2024 07:36 Go to previous messageGo to next message
Radek Felcman is currently offline Radek FelcmanFriend
Messages: 22
Registered: March 2021
Junior Member
Sorry I don't know what do You exactly mean. There is ASM 9.6 which supports JDK 22 (class weaving). But EL 4.x line is Jakarta EE 10 compliant -> target JDK 17 see https://jakarta.ee/release/10/ This is main reason why JDK 17 is used for a build/testing plus used dependencies.

[Updated on: Wed, 03 July 2024 07:37]

Report message to a moderator

Re: Java SE '21' is not fully supported yet [message #1867665 is a reply to message #1867650] Wed, 03 July 2024 10:17 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 825
Registered: July 2009
Senior Member
Well, because J21 is a LTS , I would expect a release of Eclipselink that formally supports that. I just assumed 4.0.3 was that release, given that it is a few months after the J21 release, giving the project the necessary time to do whatever is needed to make it work on J21. But the log still states:


[EL Warning]: 2024-07-03 11:27:32.701--Java SE '21' is not fully supported yet. Report this error to the EclipseLink open source project. (There is no English translation for this message.)
Re: Java SE '21' is not fully supported yet [message #1867668 is a reply to message #1867653] Wed, 03 July 2024 10:18 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 825
Registered: July 2009
Senior Member
According to this webpage, 4.0.3 is the latest release.

https://eclipse.dev/eclipselink/releases/index.php
Re: Java SE '21' is not fully supported yet [message #1868073 is a reply to message #1867653] Wed, 10 July 2024 12:11 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 825
Registered: July 2009
Senior Member
There are people that use Eclipselink outside JEE (like me), so my code base would be at Java 21 by now. Except that the Eclipselink runtime and weaver complain they don't support 21.
Re: Java SE '21' is not fully supported yet [message #1868322 is a reply to message #1868073] Wed, 17 July 2024 08:14 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 825
Registered: July 2009
Senior Member
Hibernate has formal Java 21 support
https://hibernate.org/orm/releases/6.5/

Given that Eclipselink does not, almost a year after the latest Java LTS release, is reason to start doubting if I chose the right implementation many decades ago.
Maybe it is time to switch.
Re: Java SE '21' is not fully supported yet [message #1868328 is a reply to message #1868322] Wed, 17 July 2024 09:08 Go to previous messageGo to next message
Lukas JungmannFriend
Messages: 42
Registered: November 2013
Location: Prague, Czech Republic
Member
Well, I do not see the warning you see with the latest EL 2.7.x nor 4.0.x on SE 23-ea, nor 22, nor 21. Where did you share steps to reproduce?
Re: Java SE '21' is not fully supported yet [message #1868343 is a reply to message #1868328] Wed, 17 July 2024 11:53 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 825
Registered: July 2009
Senior Member
I have not provided that, because I was not asked. If something is known, there is no need to provide such steps, and this text 'But EL 4.x line is Jakarta EE 10 compliant -> target JDK 17 ' pretty much says that.

However, after contemplating on on how to proceed, including Hibernate, this text made me think: 'There is ASM 9.6 which supports JDK 22'

There is no ASM in my dependency tree, but it turns out EL uses an embedded version named 'org.eclipse.persistence.asm'. After upgrading that to the latest release, 9.7.0, the warning message is gone. And the agent also seems to do its job.
Re: Java SE '21' is not fully supported yet [message #1868349 is a reply to message #1868343] Wed, 17 July 2024 12:23 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 825
Registered: July 2009
Senior Member
I did a bit more research, the org.eclipse.persistence.asm artifact was put into the dependency graph via:
+- com.sun.xml.ws:jaxws-ri:pom:4.0.1:compile
| +- com.sun.xml.ws:jaxws-eclipselink-plugin:jar:4.0.1:compile
| | \- org.eclipse.persistence:org.eclipse.persistence.moxy:jar:4.0.0:compile
| | +- org.eclipse.persistence:org.eclipse.persistence.asm:jar:9.4.0:compile

The first ASM release that supports J21 is 9.5, so the warning seems to be correct.
https://asm.ow2.io/versions.html

However, the reason for the warning seems not be EL itself. I just did exactly what the warning text told me to do :-) (after waiting almost a year)

[Updated on: Wed, 17 July 2024 12:27]

Report message to a moderator

Re: Java SE '21' is not fully supported yet [message #1868355 is a reply to message #1868349] Wed, 17 July 2024 13:01 Go to previous messageGo to next message
Lukas JungmannFriend
Messages: 42
Registered: November 2013
Location: Prague, Czech Republic
Member
Tom Eugelink wrote on Wed, 17 July 2024 14:23
I did a bit more research, the org.eclipse.persistence.asm artifact was put into the dependency graph via:
+- com.sun.xml.ws:jaxws-ri:pom:4.0.1:compile
| +- com.sun.xml.ws:jaxws-eclipselink-plugin:jar:4.0.1:compile
| | \- org.eclipse.persistence:org.eclipse.persistence.moxy:jar:4.0.0:compile
| | +- org.eclipse.persistence:org.eclipse.persistence.asm:jar:9.4.0:compile

The first ASM release that supports J21 is 9.5, so the warning seems to be correct.
https://asm.ow2.io/versions.html

However, the reason for the warning seems not be EL itself. I just did exactly what the warning text told me to do :-) (after waiting almost a year)



based on presented dependency tree - did you try to update jaxws-ri to 4.0.2 which is the version released AFTER SE 21 went final instead of using version released even BEFORE SE 20 went final? The dependency tree there should be different (...and the dependency tree itself is an example of what I've meant by do you mind sharing why do you think so earlier)
Re: Java SE '21' is not fully supported yet [message #1868358 is a reply to message #1868355] Wed, 17 July 2024 14:23 Go to previous message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 825
Registered: July 2009
Senior Member
Yes, I did. That bugfix version indeed pulls in org.eclipse.persistence:org.eclipse.persistence.asm 9.5.

I'm grateful for the help and that we got this sorted out. In my opinion it is not unreasonable that a message like Java SE '21' is not fully supported yet. Report this error to the EclipseLink open source project. made me think that Eclipselink is not supporting J21. So that was my answer. If it was obvious for you guys that this message comes from the embedded ASM, pointing me towards checking the version of that dependency would have sped things up. For me this message was just "Eclipselink" telling me not to use J21. It is a shame the message caused confusion.

[Updated on: Wed, 17 July 2024 15:00]

Report message to a moderator

Previous Topic:Running Eclipselink JPA in OSGi Environment
Next Topic:How should static weaving be done in EclipseLink recent versions like 4.0.0
Goto Forum:
  


Current Time: Sat Jan 18 21:45:23 GMT 2025

Powered by FUDForum. Page generated in 0.02798 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top