Skip to content

Incompatible with Java 17+ through lwjgl3ify #5

Description

@bertcardinaels

Trying to run this mod with a modern Java version with the help of lwjgl3ify (GTNH modpack version 2.4.0 java 17-20)

Before checking the logs I tried a few FalsePatern lib versions (0.10.15, 0.11.4, 0.12.5) but likely unrelated to the crash.
All attempts were done with -unimixins-all-1.7.10-0.1.11

I tried the mod with the java 8 version of the same modpack version and I can confirm it works fine.

java.lang.UnsupportedOperationException: In java 12+ final cannot be removed.
    at org.apache.commons.lang3.reflect.FieldUtils.removeFinalModifier(FieldUtils.java:744)
    at org.apache.commons.lang3.reflect.FieldUtils.removeFinalModifier(FieldUtils.java:703)
    at com.github.basdxz.rightproperguiscale.reflection.GameSettingReflections.setField(GameSettingReflections.java:125)
    at com.github.basdxz.rightproperguiscale.reflection.GameSettingReflections.setGuiScaleOptionField(GameSettingReflections.java:104)
    at com.github.basdxz.rightproperguiscale.reflection.GameSettingReflections.makeGuiScaleSliderStoreFloat(GameSettingReflections.java:69)
    at com.github.basdxz.rightproperguiscale.reflection.GameSettingReflections.guiScaleButtonIntoSlider(GameSettingReflections.java:50)
    at com.github.basdxz.rightproperguiscale.reflection.GameSettingReflections.apply(GameSettingReflections.java:37)
    at com.github.basdxz.rightproperguiscale.GUIScale.init(GUIScale.java:87)
    at com.github.basdxz.rightproperguiscale.proxy.ClientProxy.preInit(ClientProxy.java:16)
    at com.github.basdxz.rightproperguiscale.RightProperGUIScale.preInit(RightProperGUIScale.java:42)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.lang.reflect.Method.invoke(Method.java:578)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.lang.reflect.Method.invoke(Method.java:578)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.lang.reflect.Method.invoke(Method.java:578)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:480)
    at net.minecraft.client.Minecraft.run(Minecraft.java:5095)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.lang.reflect.Method.invoke(Method.java:578)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:165)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:29)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.lang.reflect.Method.invoke(Method.java:578)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:243)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:278)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)
Caused by: java.lang.NoSuchFieldException: modifiers
    at java.lang.Class.getDeclaredField(Class.java:2707)
    at org.apache.commons.lang3.reflect.FieldUtils.removeFinalModifier(FieldUtils.java:729)
    ... 44 more
    ```
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions