Skip to content

Fix type matching boundaries in field and method descriptors - #144

Open
mcculls wants to merge 2 commits into
mainfrom
mcculls/fix-type-string-boundaries
Open

mcculls wants to merge 2 commits into
mainfrom
mcculls/fix-type-string-boundaries

Conversation

@mcculls

@mcculls mcculls commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

What Does This Do

Correct the type window for the last object parameter in a method descriptor, and constrain type prefix/suffix matching to the selected descriptor window. For example, (LA;)V now exposes parameter type A instead of A;, and matching cannot include adjacent descriptor characters.

Motivation

Object parameter matching could fail for the final parameter, while prefix/suffix matching could incorrectly succeed by reading beyond the type name.

Additional Notes

Added regression coverage for final and earlier object parameters, type hashes, exact matching, and prefix/suffix boundaries for fields, parameters, and return types.

@mcculls
mcculls marked this pull request as ready for review October 17, 2026 18:42
@mcculls
mcculls requested a review from a team as a code owner October 17, 2026 18:42
@mcculls
mcculls requested review from sarahchen6 and removed request for a team October 17, 2026 18:42

This branch has not been deployed

No deployments
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