Cleanup Javap Exceptions
This commit is contained in:
parent
a826a8e979
commit
ab2ce702d9
|
@ -27,6 +27,7 @@ import the.bytecode.club.bytecodeviewer.decompilers.AbstractDecompiler;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.components.JFrameConsolePrintStream;
|
import the.bytecode.club.bytecodeviewer.gui.components.JFrameConsolePrintStream;
|
||||||
import the.bytecode.club.bytecodeviewer.resources.ExternalResources;
|
import the.bytecode.club.bytecodeviewer.resources.ExternalResources;
|
||||||
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
|
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
|
||||||
|
import the.bytecode.club.bytecodeviewer.util.ExceptionUtils;
|
||||||
import the.bytecode.club.bytecodeviewer.util.TempFile;
|
import the.bytecode.club.bytecodeviewer.util.TempFile;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -118,11 +119,7 @@ public class JavapDisassembler extends AbstractDecompiler
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (Throwable e)
|
||||||
{
|
{
|
||||||
StringWriter exceptionWriter = new StringWriter();
|
exception = NL + NL + ExceptionUtils.exceptionToString(e);
|
||||||
e.printStackTrace(new PrintWriter(exceptionWriter));
|
|
||||||
e.printStackTrace();
|
|
||||||
|
|
||||||
exception += NL + NL + exceptionWriter;
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user