fixed bug where ['s were getting appended instead of prepended
[org.ibex.classgen.git] / src / org / ibex / classgen / FieldRef.java
index 10b1b1e..b13fd4d 100644 (file)
@@ -7,11 +7,10 @@ GETFIELD, PUTFIELD, GETSTATIC, and PUTSTATCI bytecodes
 @see CGConst#GETSTATIC
 @see CGConst#PUTSTATIC
 */
-public class FieldRef extends ClassGen.FieldOrMethodRef {
+public class FieldRef extends MemberRef {
     /** Create a reference to field <i>name</i> of class <i>c</i> with the type <i>t</i>  */    
-    public FieldRef(Type.Object c, String name, Type t) { super(c,name,t.getDescriptor()); }
-    /** Equivalent to FieldRef(new Type.Object(s),...)
-        @see #FieldRef(Type.Object,String,Type,)
-    */
-    public FieldRef(String s, String name, Type t) { this(new Type.Object(s),name,t); }
+    public final Type type;
+    public FieldRef(Type.Class c, String name, Type t) { super(c, name); this.type = t; }
+    public String getDescriptor() { return name; }
 }
+