-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Remove allowWrite and allowUnsafeAccess from FieldHints #29047
Comments
I'm interested in contributing to this issue, so before I start working it, would you mind sparing your time pointing me to some resources to get started. |
The issue is yours @sreenath-tm but please keep in mind that our next milestone is due in 10 days. If you don't get to it by then, just let us know and we'll take over. The changes are to be done by removing |
The MemberHint does not have a Builder so for replacing the removed FieldHint where can we generate the set of field names that is referenced in the TypeHint class. |
In |
1 ) Is moving the code from our FieldHint to MemberHint recommended. 2 ) I replaced the FieldHint related references and replaced with Set fields but There are 2 usages of the FieldHint that I just require clarification on how we can handle that. |
|
@sreenath-tm how is it going? Sorry to say but we'd like this (and a few related changes) to get in earlier next week so that the team can adapt their code in preparation of the release Thursday. If you have some work in progress you'd like to share, you can submit a PR and I can complete it if necessary. Thanks! |
@snicoll I have changed the corresponding FieldHint and all the instances of FieldHint. I am still figuring out the usages of the FieldHint class and the impact the removal it can cause.Will raise a draft PR so that you can also take a look at it. |
Closing in favor of PR #29130 |
ReflectionHints
withfields
on default addsallowWrite
while in graal its value is optional and should be set totrue
if write should be allowed. We should not write this field unless user explicitely defines it so that we can have whatever graal does when field is not present.Though looking graal sources these fields
allowWrite
andallowUnsafeAccess
has been deprecated since21.1
meaning we could probably just remove both.https://github.com/oracle/graal/blob/22a947877c1d1cff07186999d5b9365f09c2466f/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/hosted/RuntimeReflection.java#L120-L129
The text was updated successfully, but these errors were encountered: