Skip to content
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

Graal annotation processor doesn't mark package-private injected fields for reflective access #10880

Open
mikehearn opened this issue Jun 3, 2024 · 1 comment
Assignees
Labels
relates-to: graal type: bug Something isn't working

Comments

@mikehearn
Copy link
Contributor

Expected Behavior

Field injection in native images should work even for package-private fields in superclasses.

Actual Behaviour

Such fields are gone and the program throws an exception when it tries to reflect it for injection.

Steps To Reproduce

  1. Create a class hierarchy in which a controller inherits from an abstract superclass that contains an injected package-private field.
  2. Compile it with native image

Environment Information

No response

Example Application

No response

Version

4.4.0

@mikehearn
Copy link
Contributor Author

Graeme says that probably this logic is incorrect:

.getEnclosedElements(injectedMethodsThatNeedReflection

@graemerocher graemerocher added type: bug Something isn't working relates-to: graal labels Jun 3, 2024
@graemerocher graemerocher self-assigned this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relates-to: graal type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants