Denis Taye, Colin Sampaleanu, Robert Bialek, Asato Shimotaki,
Howard Lewis Ship, Richard Jones, Marjan Sterjev,
Bruce McDonald, Mark Brennan, Vlad Skarzhevskyy,
-Brett Randall, Tsuyoshi Murakami, and Nathan Meyers
+Brett Randall, Tsuyoshi Murakami, Nathan Meyers, and Yoshiyuki Usui
for their contributions.
<p><br>
MethodInfo mi = thisMethod;
CtBehavior[] cb = thisClass.getDeclaredBehaviors();
for (int i = cb.length - 1; i >= 0; --i)
- if (cb[i].getMethodInfo() == mi)
+ if (cb[i].getMethodInfo2() == mi)
return cb[i];
+ CtConstructor init = thisClass.getClassInitializer();
+ if (init.getMethodInfo2() == mi)
+ return init;
+
throw new RuntimeException("fatal: not found");
}