-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Native images unable to access declared annotations of Java records #3984
Comments
Thank you for reporting this, we will take a look into it and get back to you |
When I run with the java-agent and then run
|
Any updates for this ? at the moment this prevents usage of one of Java 17's primary features |
I can have a look at this. |
I am currently working on solving this as part of a larger refactoring of our reflection implementation. I'll update again when I have a better idea of when the fix will be ready. |
A more comprehensive test/reproducer is (as it verifies more
|
@loicottet Here is a quick patch I did solving just this issue. Would this be worthwhile proposing as a PR? The idea would be to have a stand-alone fix which could be considered for backport to |
@loicottet Any idea yet when this would land? If far off, could we perhaps consider an intermediate fix in the meantime? For Quarkus it would be good to know a rough timeline for this issue being fixed. Thanks very much! |
The current timeline is to have this refactoring included in the 22.1 release, so probably around a month |
It would be great to have @jerboaa 's fix in a patch of |
I am currently reviewing @jerboaa's fix to include it in 21.3 |
still see this problem with 22.00.2 |
GraalVM 22.1 and 21.3.2 will have the fix (to be released in April 2022). Meanwhile if you are interested in native image only, you can try a build from here: https://github.com/graalvm/mandrel/releases/tag/mandrel-21.3.1.1-Final |
This adds a simple app using record annotations, for which a native image gets generated. This is a regression test for the fix described in issue oracle#3984
This adds a simple app using record annotations, for which a native image gets generated. This is a regression test for the fix described in issue oracle#3984
This adds a simple app using record annotations, for which a native image gets generated. This is a regression test for the fix described in issue oracle#3984
This adds a JDK 17+ test project and adds a regression test for the fix described in issue oracle#3984
This adds a JDK 17+ test project and adds a regression test for the fix described in issue oracle#3984
This adds a JDK 17+ test project and adds a regression test for the fix described in issue oracle#3984
This adds a JDK 17+ test project and adds a regression test for the fix described in issue oracle#3984
This adds a JDK 17+ test project and adds a regression test for the fix described in issue oracle#3984
This adds a JDK 17+ test project and adds a regression test for the fix described in issue oracle#3984
Describe the issue
Native images unable to access declared annotations of Java records through
java.lang.reflect.RecordComponent.declaredAnnotations
.A simple application like the following cannot compile into a native image:
Steps to reproduce the issue
Please include both build steps as well as run steps
Describe GraalVM and your environment:
More details
The build fails with:
The text was updated successfully, but these errors were encountered: