fix the field type descriptor bug (again :) )
authorbrian <brian@brianweb.net>
Sat, 2 Jul 2005 21:56:18 +0000 (21:56 +0000)
committerbrian <brian@brianweb.net>
Sat, 2 Jul 2005 21:56:18 +0000 (21:56 +0000)
darcs-hash:20050702215618-24bed-73449f508f9d18692bfc1abb45f36197c49f355a.gz

src/org/ibex/classgen/Type.java

index 492986d..ee9ebc9 100644 (file)
@@ -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+"]"; }
         }