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