Closed ichttt closed 3 years ago
Would be helpful if you could narrow it down to an independent test case not dependent on the MC mappings or your mod code
See https://github.com/ichttt/SpecialSourceIssue60Reproducer I've create a small class set to reproduce the issue without any mc or mod code. Read the readme for how I set this up
Fixed in ac2c4663cbcf430ecd2ad0878771f58e053b8f51
Thanks
(Originally opened as https://github.com/MinecraftForge/ForgeGradle/issues/716)
Using minecraft 1.16.2 with ForgeGradle 3
I've recently started using official names. However, there appears to be an issue somewhere in the reobf process when building a jar. This line causes issues: https://github.com/ichttt/SoundDeviceOptions/blob/8a6e49b8e6e9e1337585d23bc2453db5a6d2006b/src/main/java/ichttt/mods/sounddeviceoptions/client/gui/GuiSound.java#L47 as it compiled to the following (decompiled code using CFR of the reobfed jar):
Notice that the Metafactory references the
func_213105_b
method, which is a private synthetic lambda method of the super class (OptionsSoundsScreen), instead of thelambda$init$0
method, which is the correct private synthetic lamda method of my GuiSound class. This causes the following stacktrace when running the game from the launcher:Here are the classes (from the jar after reobf and when compiling using javac): Classes.zip You should be able to reproduce the issue by forking https://github.com/ichttt/SoundDeviceOptions and running
gradlew build