X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FConstantPool.java;h=f3fbdf0c8d8956fc2d6652cfb8d0596b14d08666;hp=bdfddf078250c31c1a4c12081ec3f7ceb0004b94;hb=8e8d0c0cb581b3589370e13b31102d94013d9d9d;hpb=45c5dbeb250d4684ebb28c638ae04e32b3a59f02 diff --git a/src/org/ibex/classgen/ConstantPool.java b/src/org/ibex/classgen/ConstantPool.java index bdfddf0..f3fbdf0 100644 --- a/src/org/ibex/classgen/ConstantPool.java +++ b/src/org/ibex/classgen/ConstantPool.java @@ -85,7 +85,9 @@ class ConstantPool implements CGConst { ClassEnt(String s) { this(); this.utf8 = (Utf8Ent) addUtf8(s); } void dump(DataOutput o) throws IOException { super.dump(o); o.writeShort(utf8.n); } Type.Class getTypeClass() { return (Type.Class) key(); } - Object _key() { return Type.Class.instance(utf8.s); } + Object _key() { + return Type.fromDescriptor(utf8.s.startsWith("[") ? utf8.s : "L" + utf8.s + ";"); + } void unref() { utf8.unref(); super.unref(); } public String toString() { return "[Class: " + utf8.s + "]"; } }