Skip to content

Detect field descriptor changes - #15

Open
mezz wants to merge 2 commits into
neoforged:mainfrom
mezz:pr/detect-field-descriptor-changes
Open

mezz wants to merge 2 commits into
neoforged:mainfrom
mezz:pr/detect-field-descriptor-changes

Conversation

@mezz

@mezz mezz commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

When a field changes types it should be considered incompatible.

}

@Nullable
private static FieldInfo getFieldInfo(ClassInfo classInfo, List<ClassInfo> parents, boolean isStatic, String fieldName, @Nullable String fieldDesc) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this method private, when the original method descriptor is public? The other related methods for methods, annotations, etc., are public, so I think this should be as well.

In that case, we should also deprecate the original (now bouncer) method.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm ok, that makes sense. it's not really clear to me what's meant to be public or not (is it intentional?), so I tend to just choose the more conservative option and keep things private

I'll push an update for those two things

@sciwhiz12 sciwhiz12 added the enhancement New feature or request label Sep 22, 2026
@mezz
mezz requested a review from sciwhiz12 September 23, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants