|
|
|
@ -1,6 +1,4 @@ |
|
|
|
|
/* |
|
|
|
|
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. |
|
|
|
|
*/ |
|
|
|
|
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
|
|
|
|
package org.jetbrains.java.decompiler.main; |
|
|
|
|
|
|
|
|
|
import org.jetbrains.java.decompiler.code.CodeConstants; |
|
|
|
@ -517,10 +515,9 @@ public class ClassWriter { |
|
|
|
|
try { |
|
|
|
|
buffer.append(root.toJava(indent, tracer)); |
|
|
|
|
} |
|
|
|
|
catch (Throwable ex) { |
|
|
|
|
DecompilerContext.getLogger().writeMessage("Method " + mt.getName() + " " + mt.getDescriptor() + " couldn't be written.", |
|
|
|
|
IFernflowerLogger.Severity.WARN, |
|
|
|
|
ex); |
|
|
|
|
catch (Throwable t) { |
|
|
|
|
String message = "Method " + mt.getName() + " " + mt.getDescriptor() + " couldn't be written."; |
|
|
|
|
DecompilerContext.getLogger().writeMessage(message, IFernflowerLogger.Severity.WARN, t); |
|
|
|
|
methodWrapper.decompiledWithErrors = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -805,7 +802,6 @@ public class ClassWriter { |
|
|
|
|
|
|
|
|
|
buffer.append(';'); |
|
|
|
|
buffer.appendLineSeparator(); |
|
|
|
|
tracer.incrementCurrentSourceLine(); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
if (!clinit && !dinit) { |
|
|
|
@ -831,11 +827,9 @@ public class ClassWriter { |
|
|
|
|
tracer.setCurrentSourceLine(codeTracer.getCurrentSourceLine()); |
|
|
|
|
tracer.addTracer(codeTracer); |
|
|
|
|
} |
|
|
|
|
catch (Throwable ex) { |
|
|
|
|
DecompilerContext.getLogger() |
|
|
|
|
.writeMessage("Method " + mt.getName() + " " + mt.getDescriptor() + " couldn't be written.", |
|
|
|
|
IFernflowerLogger.Severity.WARN, |
|
|
|
|
ex); |
|
|
|
|
catch (Throwable t) { |
|
|
|
|
String message = "Method " + mt.getName() + " " + mt.getDescriptor() + " couldn't be written."; |
|
|
|
|
DecompilerContext.getLogger().writeMessage(message, IFernflowerLogger.Severity.WARN, t); |
|
|
|
|
methodWrapper.decompiledWithErrors = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -850,8 +844,9 @@ public class ClassWriter { |
|
|
|
|
tracer.addMapping(root.getDummyExit().bytecode); |
|
|
|
|
} |
|
|
|
|
buffer.appendIndent(indent).append('}').appendLineSeparator(); |
|
|
|
|
tracer.incrementCurrentSourceLine(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tracer.incrementCurrentSourceLine(); |
|
|
|
|
} |
|
|
|
|
finally { |
|
|
|
|
DecompilerContext.setProperty(DecompilerContext.CURRENT_METHOD_WRAPPER, outerWrapper); |
|
|
|
|