Minecraft Version: 1.19
Forge Version: 41.0.98
Logs: https://gist.github.com/thedarkcolour/3c08730917d49a8d1bf79334770b5c0a
Steps to Reproduce:
- Run Forge with just these two mods
- KotlinForForge can be compiled from here. The correct jar is
kotlinforforge-3.7.0-obf.jar, created in kfflang\build\libs
- Examplemod can be compiled from here on the 1.19.x branch.
- Crash
Description of issue:
This issue happens when running with the vanilla Minecraft launcher. Attempting to load a mod with KotlinForForge (Kotlin language loader) causes an IllegalAccessError, since the kotlinforforge module cannot access kotlin.stdlib module, which is included via JarJar. The language provider classes are written in Kotlin, and they do not get loaded unless a mod whose modLoader is set to "kotlinforforge" in the mods.toml.
When KotlinForForge used the shadow plugin to shade the Kotlin libraries, this issue did not happen. It seems like JarJar is not opening up the module-info of the JarJar libraries?

Minecraft Version: 1.19
Forge Version: 41.0.98
Logs: https://gist.github.com/thedarkcolour/3c08730917d49a8d1bf79334770b5c0a
Steps to Reproduce:
kotlinforforge-3.7.0-obf.jar, created inkfflang\build\libsDescription of issue:

This issue happens when running with the vanilla Minecraft launcher. Attempting to load a mod with KotlinForForge (Kotlin language loader) causes an IllegalAccessError, since the
kotlinforforgemodule cannot accesskotlin.stdlibmodule, which is included via JarJar. The language provider classes are written in Kotlin, and they do not get loaded unless a mod whosemodLoaderis set to "kotlinforforge" in the mods.toml.When KotlinForForge used the shadow plugin to shade the Kotlin libraries, this issue did not happen. It seems like JarJar is not opening up the module-info of the JarJar libraries?