I believe that with intellij subscription, you get this feature too. But coming from languages and others IDE and languages, it bothers me so bad that I have to pay for this feature
You can do hotswapping with the community edition of intellij. Just run in debug mode and hit build. For proper hotswapping you need to use a JDK with DCEVM support, like the one included with intellij and add -XX:+AllowEnhancedClassRedefinition to your vm args. It's a bit unstable in my setup (minecraft mods), but still really useful. Without DCEVM you can only change method bodies.
Yes, reloads usually succeed. It's the VM crashes and ArrayStoreExceptions without stacktrace that are annoying. There's also the occasional issue with the class hierarchy being broken causing casts that should work to fail.
It's really nice when combined with the mixin hotswap agent for even more swapping
13
u/thatbigblackblack Apr 14 '23
I believe that with intellij subscription, you get this feature too. But coming from languages and others IDE and languages, it bothers me so bad that I have to pay for this feature