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

Flag to inherit access transformers on methods #1

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

lynxplay
Copy link

Useful for modifying methods exposed by types with a lot of children
to avoid specifying them all.

Useful for modifying methods exposed by types with a lot of children
to avoid specifying them all.
When inheriting method ATs, classes may need to be processed that are
not found in the source AT set as they inherit their ATs from their
parent.
The previous iteration would accomplish this by simply visiting the
entire source root.

The commit introduces a simplistic heuristic, filtering out any types
from processing that do not have a parent with an AT defined.
While this is not exact, e.g. a class will still be processed if its
parent type has a field changed via AT, the accesstransformer library
used does not expose the types of ATs defined on a class, making this a
best effort approximation.
@lynxplay lynxplay merged commit 7b55b32 into main Dec 18, 2024
2 checks passed
@lynxplay lynxplay deleted the feature/method-at-inheritance branch December 18, 2024 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant