From: brian Date: Sat, 2 Jul 2005 21:56:18 +0000 (+0000) Subject: fix the field type descriptor bug (again :) ) X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=commitdiff_plain;h=41323af6deb26dfdadae287cfc79121837175627;hp=9603ae5a156fae4acb8423dba6d5e4d571fd2d6e fix the field type descriptor bug (again :) ) darcs-hash:20050702215618-24bed-73449f508f9d18692bfc1abb45f36197c49f355a.gz --- diff --git a/src/org/ibex/classgen/Type.java b/src/org/ibex/classgen/Type.java index 492986d..ee9ebc9 100644 --- a/src/org/ibex/classgen/Type.java +++ b/src/org/ibex/classgen/Type.java @@ -148,7 +148,7 @@ public class Type implements CGConst { public class Field extends Member { public final Type type; private Field(String name, Type t) { super(name); this.type = t; } - public String getDescriptor() { return name; } + public String getDescriptor() { return type.getDescriptor(); } public Type getType() { return type; } public String debugToString() { return getDeclaringClass()+"."+name+"["+type+"]"; } }