Skip to content

Fix NoClassDefFoundError in ConfigAP#479

Open
Minecraftalus wants to merge 1 commit into
wisp-forest:26.1from
Minecraftalus:configap-case-sensitivity
Open

Fix NoClassDefFoundError in ConfigAP#479
Minecraftalus wants to merge 1 commit into
wisp-forest:26.1from
Minecraftalus:configap-case-sensitivity

Conversation

@Minecraftalus
Copy link
Copy Markdown

In certain cases when built on case insensitive filesystems, the generated config will throw a NoClassDefFoundError.
Currently nested classes are being checked for naming conflicts but not casing conflicts. For example a nested config section HUD hud = new HUD(); results in an inner interface named HUD and inner class named Hud, which aren't equal so no _ is appended. During compilation these files overwrite eachother leading to a NoClassDefFoundError.
Switching to equalsIgnoreCase catches both naming and casing conflicts.

In certain cases when built on case insensitive filesystems
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