[Breaking] remove confusing descriptor leniency#18
Open
lukebemish wants to merge 4 commits intoneoforged:mainfrom
Open
[Breaking] remove confusing descriptor leniency#18lukebemish wants to merge 4 commits intoneoforged:mainfrom
lukebemish wants to merge 4 commits intoneoforged:mainfrom
Conversation
|
shartte
approved these changes
Sep 18, 2025
Contributor
shartte
left a comment
There was a problem hiding this comment.
Have to do a major bump for this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, AT allows some leniency in descriptor parsing, allowing descriptors such as
Ljava.lang.String;to be parsed as equivalent toLjava/lang/String;. This is to match similar behaviour from when the old antlr grammar was used.However, this actually allows a bit more leniency than the old pre-antlr parser, which for various reasons had inconsistent behaviour -- namely, the
argumentsandreturnTypeof aMethodTargetused the.-to-/-translated descriptors but thetargetName, used in some places, did not. Thus,.-containing descriptors would parse fine but fail to apply (not match any target) on old AT, whereas they both parse and apply on modern AT.This has caused some confusion: https://discord.com/channels/313125603924639766/570666026077913098/1418191103638638734. Namely, it means there are cases where when modding for 1.21.1, ATs will validate and apply just fine when the dev env is set up with JST, but fail to apply at runtime, if they rely on the new behaviour here. This leads to dev vs prod behavioural differences, which are bad. Removing the leniency outright -- leniency which, to be fair, doesn't really have a correlate anywhere else -- seems like the most sensible solution here.