introduced Type.Ref as common superclass of Type.Class and Type.Array
[org.ibex.classgen.git] / src / org / ibex / classgen / FieldRef.java
index 9548a24..9a4b790 100644 (file)
@@ -9,9 +9,9 @@ GETFIELD, PUTFIELD, GETSTATIC, and PUTSTATCI bytecodes
 */
 public class FieldRef extends ClassGen.FieldOrMethodRef {
     /** 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(Type.Class c, String name, Type t) { super(c, name, t.getDescriptor()); }
+    /** Equivalent to FieldRef(new Type.Class(s), ...)
+        @see #FieldRef(Type.Class, String, Type, )
     */
-    public FieldRef(String s, String name, Type t) { this(Type.fromDescriptor(s).asObject(), name, t); }
+    public FieldRef(String s, String name, Type t) { this(Type.fromDescriptor(s).asClass(), name, t); }
 }