From 65f5a5bb1207ae5bc237256c058dbabf606bcd9c Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 15 Jan 1999 10:58:57 +0000 Subject: [PATCH] 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 --- jode/jode/bytecode/ClassInfo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jode/jode/bytecode/ClassInfo.java b/jode/jode/bytecode/ClassInfo.java index 34829cb..50dcc7a 100644 --- a/jode/jode/bytecode/ClassInfo.java +++ b/jode/jode/bytecode/ClassInfo.java @@ -20,6 +20,7 @@ package jode.bytecode; import jode.MethodType; import java.io.*; import java.util.*; +import java.lang.reflect.Modifier; /** * This class does represent a class similar to java.lang.Class. You @@ -217,6 +218,7 @@ public class ClassInfo extends BinaryInfo { else superclass = ClassInfo.forName("java.lang.Object"); interfaces = new ClassInfo[0]; + modifiers = Modifier.PUBLIC; status = FULLINFO; } } @@ -240,7 +242,7 @@ public class ClassInfo extends BinaryInfo { } public boolean isInterface() { - return java.lang.reflect.Modifier.isInterface(getModifiers()); + return Modifier.isInterface(getModifiers()); } public String toString() {