X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FConstantPool.java;h=5868f62946b2649a2edd8ba417f0fcb9545890a1;hp=4d62df71dce89e52fbfb3e17d999db9e9af2c522;hb=f0d5b6ee8a3ca364ca8d833484a7454beeca2f24;hpb=12d5044d6e0c5c421a77dc436b0c8dd1e73cdeb4 diff --git a/src/org/ibex/classgen/ConstantPool.java b/src/org/ibex/classgen/ConstantPool.java index 4d62df7..5868f62 100644 --- a/src/org/ibex/classgen/ConstantPool.java +++ b/src/org/ibex/classgen/ConstantPool.java @@ -86,7 +86,7 @@ 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 new Type.Class(utf8.s); } + Object _key() { return Type.Class.instance(utf8.s); } void unref() { utf8.unref(); super.unref(); } String debugToString() { return "[Class: " + utf8.s + "]"; } }