Cleanup Javap Exceptions

This commit is contained in:
Konloch 2024-10-02 14:25:13 -06:00
parent a826a8e979
commit ab2ce702d9

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -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
{ {