-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
jpamodelgen fails with range out of bounds #38950
Comments
There is already a similar issue on the hibernate tracker: https://hibernate.atlassian.net/jira/software/c/projects/HHH/issues/HHH-17514 I am however not sure if it describes the same situation as mine - and wanted the issue to be tracked here as well, so it is easier to find for other quarkus users. |
Given there is little specific to Quarkus in jpamodelgen... I'd bet on this being totally unrelated to Quarkus.
Thanks for linking to the upstream issue. Let's close when we upgrade to the relevant upstream version then. |
FTR.
Now I can already switch to declaring my annotationProcessors using the compiler plugin.
This uses my own declared version of 6.2.13.Final - and the build is succesfull. Once the bug is fixed upstream (and quarkus updated), I can simply remove the entry from my own dependency-management. |
Has this since been fixed? |
The fix was in Hibernate ORM 6.4.0, which we upgraded to in #36978, first released in Quarkus 3.7.0.CR1. So yes it's been fixed, I just forgot to list it in the relevant PR, sorry. Closing. |
Thanks! |
Wait... that's wrong. https://hibernate.atlassian.net/browse/HHH-17514 affects 6.4.0, it's not fixed there. The issue is still open upstream. Reopening... |
So the bug was apparently fixed somewhere between 6.4.1 and 6.4.8, see https://hibernate.atlassian.net/browse/HHH-17514. But since it was fixed by an unrelated change, I don't know which version I don't think it matters anyway; in Quarkus, it's fixed for sure by #40102 in Quarkus 3.11.0.CR1, and should also be fixed in any version that upgrades to Hibernate ORM 6.4.8 (I'll send a PR shortly for Quarkus 3.8). |
Describe the bug
I am currently in the process of preparing migration to quakus 3.8. One of my commons modules contains mappedsupperclasses like this:
With quarkus 3.5, the jpamodelgen sucessfuly generated the metamodel.
Startin with quarkus 3.7.1 and up, not anymore, see log below.
Expected behavior
My metamodel is again successfully generated.
This is the excpected output for the Access class.
Actual behavior
How to Reproduce?
Reproducer:
jpa-modelgen-line.zip
mvn clean install
build fails
Output of
uname -a
orver
MINGW64_NT-10.0-19045 NANBCHL9NG3 3.3.6-341.x86_64 2022-09-05 20:28 UTC x86_64 Msys
Output of
java -version
openjdk 21.0.2 2024-01-16 LTS OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)
Quarkus version or git rev
3.7.1, 3.8.0.CR1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: C:\eclipse\tools\java\maven Java version: 21.0.2, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\21 Default locale: de_DE, platform encoding: UTF-8 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response
The text was updated successfully, but these errors were encountered: