Skip to content

Conversation

@Earthcomputer
Copy link
Contributor

I also moved the anonymous classes in the apply visitor to named inner classes to reduce nesting.

When the class is a record, it now reads all methods into MethodNodes and applies them inside visitEnd(), because record components as per the ASM docs are not guaranteed to be visited before methods (even though in practice they are by ClassReader.accept and ClassNode.accept).

@modmuss50 modmuss50 merged commit 5656d41 into FabricMC:exp/1.12 Oct 15, 2025
46 checks passed
@modmuss50
Copy link
Member

Tests might be nice, but ill leave that up to you.

@Earthcomputer Earthcomputer deleted the record-component-annotation-apply branch October 15, 2025 20:07
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.

2 participants