You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to improve method lookup. Right now, this is what is necessary to find the standard main method:
DefinedTypeDefinitionstringClass = bcc.findDefinedType("java/lang/String");
if (stringClass == null) {
context.error("String class not found (missing JDK?)");
returndelegate;
}
TypeSystemts = context.getTypeSystem();
LiteralFactorylf = context.getLiteralFactory();
ReferenceTypestringArray = ts.getReferenceType(lf.literalOfArrayType(ts.getReferenceType(stringClass.validate().getTypeId())));
intidx = userMainClass.validate().resolve().findMethodIndex("main", MethodDescriptor.of(ParameterizedExecutableDescriptor.of(stringArray), ts.getVoidType()));
if (idx == -1) {
context.error("No main method found on main class %s", mainClassName);
returndelegate; // bail out
}
finalMethodElementuserMain = userMainClass.validate().getMethod(idx);
(edited because it's actually even worse)
The text was updated successfully, but these errors were encountered:
It would be nice to improve method lookup. Right now, this is what is necessary to find the standard
main
method:(edited because it's actually even worse)
The text was updated successfully, but these errors were encountered: