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

Add Record and PermittedSubclasses (sealed) Attributes #495

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Asbestosstar
Copy link

This pull request adds the Java 17 Record and PermittedSubclasses (for sealed classes and interfaces) Attributes to Javassist. These are very much needed as soon as possible for a remapper i have https://pagure.io/AssistRemapper/tree/main which i need to remap classes and records but have been unable to fully do so because Javassist did not yet have the attributes built in so i decided to add them to fix these issues.

Here is the test project. Simply add javassist as a dependency. I did not include it in the official JA test suite because it is based on Java 11 while the attributes i added were for later versions.
https://github.com/Asbestosstar/javassistrecordsealedtests

Please let me know what changes need to be made

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