public CtConstructor getConstructor(String desc)
throws NotFoundException
{
- throw new NotFoundException("no such a constructor");
+ throw new NotFoundException("no such constructor");
}
/**
* Returns the method with the specified name. If there are multiple methods
* with that name, this method returns one of them.
*
- * @return null if no such a method is found.
+ * @return null if no such method is found.
*/
public MethodInfo getMethod(String name) {
ArrayList list = methods;
String name = sbuf.toString();
Object[] names = resolver.getClassPool().lookupCflow(name);
if (names == null)
- throw new CompileError("no such a " + cflowName + ": " + name);
+ throw new CompileError("no such " + cflowName + ": " + name);
bytecode.addGetstatic((String)names[0], (String)names[1],
"Ljavassist/runtime/Cflow;");
if (mname.equals(MethodInfo.nameInit)) {
isSpecial = true;
if (declClass != targetClass)
- throw new CompileError("no such a constructor");
+ throw new CompileError("no such constructor");
if (declClass != thisClass && AccessFlag.isPrivate(acc)) {
desc = getAccessibleConstructor(desc, declClass, minfo);
private ReferenceType toRefType(String className) {
List list = jvm.classesByName(className);
if (list == null || list.isEmpty())
- throw new RuntimeException("no such a class: " + className);
+ throw new RuntimeException("no such class: " + className);
else
return (ReferenceType)list.get(0);
}