@@ -1596,7 +1596,7 @@ static class StaticMethodExpr extends MethodExpr{
15961596 public final int column ;
15971597 public final java .lang .reflect .Method method ;
15981598 public final Symbol tag ;
1599- final static Method forNameMethod = Method .getMethod ("Class forName (String)" );
1599+ final static Method forNameMethod = Method .getMethod ("Class classForName (String)" );
16001600 final static Method invokeStaticMethodMethod =
16011601 Method .getMethod ("Object invokeStaticMethod(Class,String,Object[])" );
16021602 final static Keyword warnOnBoxedKeyword = Keyword .intern ("warn-on-boxed" );
@@ -1773,7 +1773,7 @@ else if(retClass != void.class)
17731773 else
17741774 {
17751775 gen .push (c .getName ());
1776- gen .invokeStatic (CLASS_TYPE , forNameMethod );
1776+ gen .invokeStatic (RT_TYPE , forNameMethod );
17771777 gen .push (methodName );
17781778 emitArgsAsArray (args , objx , gen );
17791779 if (context == C .RETURN )
@@ -2482,8 +2482,7 @@ public static class NewExpr implements Expr{
24822482 public final Class c ;
24832483 final static Method invokeConstructorMethod =
24842484 Method .getMethod ("Object invokeConstructor(Class,Object[])" );
2485- // final static Method forNameMethod = Method.getMethod("Class classForName(String)");
2486- final static Method forNameMethod = Method .getMethod ("Class forName(String)" );
2485+ final static Method forNameMethod = Method .getMethod ("Class classForName(String)" );
24872486
24882487
24892488 public NewExpr (Class c , IPersistentVector args , int line , int column ) {
@@ -2556,7 +2555,7 @@ public void emit(C context, ObjExpr objx, GeneratorAdapter gen){
25562555 else
25572556 {
25582557 gen .push (destubClassName (c .getName ()));
2559- gen .invokeStatic (CLASS_TYPE , forNameMethod );
2558+ gen .invokeStatic (RT_TYPE , forNameMethod );
25602559 MethodExpr .emitArgsAsArray (args , objx , gen );
25612560 if (context == C .RETURN )
25622561 {
@@ -4601,7 +4600,7 @@ else if(value instanceof Class)
46014600 else
46024601 {
46034602 gen .push (destubClassName (cc .getName ()));
4604- gen .invokeStatic (Type . getType ( Class . class ) , Method .getMethod ("Class forName (String)" ));
4603+ gen .invokeStatic (RT_TYPE , Method .getMethod ("Class classForName (String)" ));
46054604 }
46064605 }
46074606 else if (value instanceof Symbol )
@@ -7421,7 +7420,7 @@ CONSTANT_IDS, new IdentityHashMap(),
74217420 clinitgen .invokeStatic (objx .objtype , Method .getMethod ("void __init" + n + "()" ));
74227421
74237422 clinitgen .push (objx .internalName .replace ('/' ,'.' ));
7424- clinitgen .invokeStatic (CLASS_TYPE , Method .getMethod ("Class forName (String)" ));
7423+ clinitgen .invokeStatic (RT_TYPE , Method .getMethod ("Class classForName (String)" ));
74257424 clinitgen .invokeVirtual (CLASS_TYPE ,Method .getMethod ("ClassLoader getClassLoader()" ));
74267425 clinitgen .invokeStatic (Type .getType (Compiler .class ), Method .getMethod ("void pushNSandLoader(ClassLoader)" ));
74277426 clinitgen .mark (startTry );
0 commit comments