public static boolean isBuiltinClass (String cname) {
char c = cname.charAt(0);
+ // TODO: Fix for Groovy's model-checking
+ // TODO: Handling impossible names in Groovy, e.g., [Ljava.lang.Object;BeanInfo
+ if (cname.indexOf(';') != -1 && cname.indexOf(';') != cname.length() - 1) {
+ return false;
+ }
+
// array class
if ((c == '[') || cname.endsWith("[]")) {
return true;
// TODO: Fix for Groovy's model-checking
public String[] getGenericTypeVariableNames () {
- // TODO: We need to double check but for some reason Groovy has a type of generic signature with "<*>"
- // TODO: in the class file.
- if (genericSignature == null || genericSignature.equals("") || genericSignature.contains("<*>"))
+ if (genericSignature == null || genericSignature.equals(""))
return new String[0];
if (!genericSignature.contains(":"))
return new String[0];