4 ms·
Why would you need a decompiler to write a debugger for Groovy? The groovy compiler supports including source code line numbers and variable names in compiled
by eeperson 10y ago
Why would you need a decompiler to write a debugger for Groovy? The groovy compiler supports including source code line numbers and variable names in compiled jar files (just like Java). As a result you can use any Java debugger to debug Groovy.
Also, why would you expect that Groovy can be compiled and then decompiled to Java? This doesn't even work 100% going from Java to Java, and Groovy is going to have idioms that doesn't map easily to Java idioms.
- vorg 10y ago> The groovy compiler supports including source code line numbers and variable names in compiled jar files I haven't used Groovy since v 1.8, and certainly didn't know about this facility then. > why would you expect that Groovy can be compiled and then decompiled to Java? It worked in Groovy 1.0, and the decompiles to Java were useful back then when Groovy often had unexpected behavior.