-
Notifications
You must be signed in to change notification settings - Fork 1.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
[GR-57707] native-image-agent omits String[] from "serialization" when using newConstructorForSerialization #9581
Comments
Thanks for reporting this issue. Created GR-57707 for internal tracking |
cc @vjovanov |
Not expected behavior, I will look into this early next week. |
Hi @vjovanov, Looking into this issue, I identified the direct cause. graal/substratevm/src/com.oracle.svm.configure/src/com/oracle/svm/configure/trace/AccessAdvisor.java Lines 136 to 137 in 261c38a
The above line causes Lines 65 to 67 in 261c38a
As an experiment, I commented out the corresponding line in AccessAdvisor.java and confirmed that I hope this information is helpful. |
Thank you greatly for investigating! @DSouzaM is working on disabling the agent completely before |
As I was looking at #8509 (comment) using native-agent to generate serialization config, it occurred to me that while e.g. both
java.lang.Short[]
andjava.lang.String[][]
get generated in thereachability-metadata.json
, thejava.lang.String[]
is not added and has to be added manually. It's not a new thing though, I can see it both with older graalvm-community-jdk21u and with the very latest graalvm-community-java24.How to reproduce
Using this source Main.java.zip
TL;DR:
When I edit the
AGENT/reachability-metadata.json
file as suggested by the helpful message:and run the build again, it works.
Is this expected of the native agent?
(@zakkak FYI)
The text was updated successfully, but these errors were encountered: