From fb79ffefc2d3c52ca2ab234808b5cb495a933b47 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 5 Jul 1999 14:29:13 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1002 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/InstanceOfOperator.java | 8 ++++---- jode/jode/expr/InvokeOperator.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jode/jode/expr/InstanceOfOperator.java b/jode/jode/expr/InstanceOfOperator.java index 8d9508d..d025a7c 100644 --- a/jode/jode/expr/InstanceOfOperator.java +++ b/jode/jode/expr/InstanceOfOperator.java @@ -44,10 +44,10 @@ public class InstanceOfOperator extends Operator { public void dumpExpression(TabbedPrintWriter writer) throws java.io.IOException { - /* There are special cases where a cast isn't allowed. We must cast - * to the common super type before. This cases always give a runtime - * error, but we want to decompile even bad programs. - */ + /* There are special cases where a cast isn't allowed. We + * must cast to the common super type before. In these cases + * instanceof always return false, but we want to decompile + * even bad programs. */ Type superType = instanceType.getCastHelper(subExpressions[0].getType()); if (superType != null) { diff --git a/jode/jode/expr/InvokeOperator.java b/jode/jode/expr/InvokeOperator.java index a3ceb92..3aa7dd1 100644 --- a/jode/jode/expr/InvokeOperator.java +++ b/jode/jode/expr/InvokeOperator.java @@ -339,12 +339,12 @@ public final class InvokeOperator extends Operator result = (String) Interpreter.interpretMethod(env, info, locals); } catch (InterpreterException ex) { GlobalOptions.err.println("Warning: Can't interpret method " - +methodName); + +methodName); ex.printStackTrace(GlobalOptions.err); return null; } catch (InvocationTargetException ex) { GlobalOptions.err.println("Warning: Interpreted method throws" - +" an uncaught exception: "); + +" an uncaught exception: "); ex.getTargetException().printStackTrace(GlobalOptions.err); return null; }