make a valid modifiers for unknown classes

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@153 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent f8b475eabf
commit 65f5a5bb12
  1. 4
      jode/jode/bytecode/ClassInfo.java

@ -20,6 +20,7 @@ package jode.bytecode;
import jode.MethodType; import jode.MethodType;
import java.io.*; import java.io.*;
import java.util.*; import java.util.*;
import java.lang.reflect.Modifier;
/** /**
* This class does represent a class similar to java.lang.Class. You * This class does represent a class similar to java.lang.Class. You
@ -217,6 +218,7 @@ public class ClassInfo extends BinaryInfo {
else else
superclass = ClassInfo.forName("java.lang.Object"); superclass = ClassInfo.forName("java.lang.Object");
interfaces = new ClassInfo[0]; interfaces = new ClassInfo[0];
modifiers = Modifier.PUBLIC;
status = FULLINFO; status = FULLINFO;
} }
} }
@ -240,7 +242,7 @@ public class ClassInfo extends BinaryInfo {
} }
public boolean isInterface() { public boolean isInterface() {
return java.lang.reflect.Modifier.isInterface(getModifiers()); return Modifier.isInterface(getModifiers());
} }
public String toString() { public String toString() {

Loading…
Cancel
Save