X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FMethodRef.java;h=4810bbbb7ea19b2fdee510774cb2782dd021d73c;hb=6c44a3470c1ae5c0e54153871805e24e394a96bb;hp=64602803035c5cf68b38fa0f37066ea6838fed78;hpb=313d0d7b61cbae37ba11f48b752aebd52be68b5c;p=org.ibex.classgen.git diff --git a/src/org/ibex/classgen/MethodRef.java b/src/org/ibex/classgen/MethodRef.java index 6460280..4810bbb 100644 --- a/src/org/ibex/classgen/MethodRef.java +++ b/src/org/ibex/classgen/MethodRef.java @@ -7,7 +7,7 @@ package org.ibex.classgen; @see CGConst#INVOKESPECIAL @see CGConst#INVOKEINTERFACE */ -public class MethodRef extends ClassGen.FieldOrMethodRef { +public class MethodRef extends MemberRef { /** Create a reference to method name of class c with the return type ret and the arguments args */ public MethodRef(Type.Class c, String name, Type ret, Type[] args) { @@ -17,7 +17,7 @@ public class MethodRef extends ClassGen.FieldOrMethodRef { @see #MethodRef(Type.Class, String, Type, Type[]) */ public MethodRef(String s, String name, Type ret, Type[] args) { - this(Type.fromDescriptor(s).asClass(), name, ret, args); + this(Type.instance(s).asClass(), name, ret, args); } MethodRef(MethodRef i) { super(i); }