-
Notifications
You must be signed in to change notification settings - Fork 300
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
Recursive annotations cannot be deployed with JPA on Payara 5 #2608
Comments
Can you raise this on Eclipselink https://github.com/eclipse-ee4j/eclipselink? |
I'm having a really hard time with this issue. I already saw the issue on eclipselink: I will try to solve it and contribute the solution if I find a viable solution. |
This is now fixed in upstream eclipse-ee4j/eclipselink#137 in both master and 2.7 branches. |
Created PAYARA-2881 to bring in the upstream fixes. |
Description
When an annotation class annotated with itself gets scanned by EclipseLink, it enters into a recursive loop which triggers a StackOverflowError and fails the deployment. The same was working correctly on version 4.
Expected Outcome
Successful deployment
Current Outcome
A failed deployment with a log like in
https://javaee.groups.io/g/glassfish/topic/6519037
https://pastebin.com/61trs1kj
Steps to reproduce
Compile only these 3 files into a WAR and deploy in payara micro:
The culprit:
The enabler:
The trigger:
Samples
scce.zip
Context
I encountered the issue in a Kotlin project where
kotlin.annotation.Target
is annotated with itself.Environment
The text was updated successfully, but these errors were encountered: