*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1002 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent bbdf110ec2
commit fb79ffefc2
  1. 8
      jode/jode/expr/InstanceOfOperator.java
  2. 4
      jode/jode/expr/InvokeOperator.java

@ -44,10 +44,10 @@ public class InstanceOfOperator extends Operator {
public void dumpExpression(TabbedPrintWriter writer) public void dumpExpression(TabbedPrintWriter writer)
throws java.io.IOException { throws java.io.IOException {
/* There are special cases where a cast isn't allowed. We must cast /* There are special cases where a cast isn't allowed. We
* to the common super type before. This cases always give a runtime * must cast to the common super type before. In these cases
* error, but we want to decompile even bad programs. * instanceof always return false, but we want to decompile
*/ * even bad programs. */
Type superType Type superType
= instanceType.getCastHelper(subExpressions[0].getType()); = instanceType.getCastHelper(subExpressions[0].getType());
if (superType != null) { if (superType != null) {

@ -339,12 +339,12 @@ public final class InvokeOperator extends Operator
result = (String) Interpreter.interpretMethod(env, info, locals); result = (String) Interpreter.interpretMethod(env, info, locals);
} catch (InterpreterException ex) { } catch (InterpreterException ex) {
GlobalOptions.err.println("Warning: Can't interpret method " GlobalOptions.err.println("Warning: Can't interpret method "
+methodName); +methodName);
ex.printStackTrace(GlobalOptions.err); ex.printStackTrace(GlobalOptions.err);
return null; return null;
} catch (InvocationTargetException ex) { } catch (InvocationTargetException ex) {
GlobalOptions.err.println("Warning: Interpreted method throws" GlobalOptions.err.println("Warning: Interpreted method throws"
+" an uncaught exception: "); +" an uncaught exception: ");
ex.getTargetException().printStackTrace(GlobalOptions.err); ex.getTargetException().printStackTrace(GlobalOptions.err);
return null; return null;
} }

Loading…
Cancel
Save