MinecraftForge / Srg2Source

Applies source level refactors to java source code.
GNU Lesser General Public License v2.1
60 stars 32 forks source link

System.exit called when file declares private class inside method #16

Closed boq closed 7 years ago

boq commented 7 years ago

When file contains this (rare, but correct) construct, Srg2Source calls System.exit(1) (from this code), killing Gradle worker without any stacktrace. This also causes logs to be cut short, making debugging difficult.

Reproducible case: https://gist.github.com/boq/e55ea64ca9e9ba06fc56f5824b2de1ee

Stacktrace - captured by replacing security manager.

Example triggering line (source code for this class)

@|openmods\calc\parsing\BasicCompilerMapFactory.java|6486|6508|ConstantEvaluatorState|method||ConstantEvaluatorState|()V

EDIT: derp, duplicate of #14.