else {
CtClass enc = classPool.get(ema.className());
String name = ema.methodName();
- switch (name) {
- case MethodInfo.nameInit:
+ if (MethodInfo.nameInit.equals(name))
return enc.getConstructor(ema.methodDescriptor());
- case MethodInfo.nameClinit:
+ else if(MethodInfo.nameClinit.equals(name))
return enc.getClassInitializer();
- default:
+ else
return enc.getMethod(name, ema.methodDescriptor());
- }
}
}
long t2 = endTime2 - endTime;
long t3 = endTime3 - endTime2;
System.out.println("JIRA150: " + t1 + ", " + t2 + ", " + t3);
- assertTrue(t2 < t1 * 4);
+ assertTrue(t2 < t1 * 5);
assertTrue(t3 < t1 * 3);
}