Open codecnotsupported opened 2 years ago
It seems merely using JetBrainsRuntime JDK with
-XX:+AllowEnhancedClassRedefinition
is enough to make the hotswap task hang, meaning HotswapAgent
is probably not the cause.
This definitely used to work on java 8 dcevm on 1.12.2. On newer versions on modlauncher the only time o tried, it didn't yet work (classloading issue on hotswap attempt).
With or without hotspot agent loaded on jbr_17
-XX:+AllowEnhancedClassRedefinition -javaagent:"sponge-mixin-0.12.5+mixin.0.8.5.jar"
hangs for me
Has anyone found a fix for this?
Has anyone found a fix for this?
It seems like downgrading JBR works: https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr17_0_1b164.8
Downgrading JBR doesn't help in my case. Seems like hotswapping mixins is broken for Java 17+. Hope this will get fixed.
The fabric wiki Mentions that "When run on JetBrains Runtime's Java 17 fork (with DCEVM), Mixin hotswapping and DCEVM work properly."
There are two ways to use DCEVM with java 17.
A: (Able to launch with quilt): Follow the tutorial below and use the hotswap-agent.jar with the latest JetBrainsRuntime
B: (Able to launch fabric & quilt): Use a outdated version of JetBrains Runtime's Java (jbrsdk_dcevm-17_0_1) which I presume bundles the hotswap-agent.
Setup: java VM arguments:
When hotswapping it prints:
[JDWP Transport Listener: dt_socket/INFO]: Redefining mixin com/example/example_mod/mixin/ArrowEntityMixin
Then the loading bar in InteliJ Idea just hangs.Other observations:
Hotswap agent has suppport for plugins But I don't think Mixin takes advantage of that?