Commit 718942cc authored by Mark's avatar Mark
Browse files

Allow JAVA:JCLASS to work for non-primitive arrays suffixed with "[]"

This allows constructs like (jclass "java.lang.Integer[]") to work.
parent ba565b8a
......@@ -1393,7 +1393,9 @@ public final class Java
} else if (className.startsWith("boolean")) {
return Class.forName("[Z");
} else {
return Class.forName(className); // Not going to work well
final String arrayTypeName
= "[L" + className.substring(0, className.length() - 2) + ";";
return Class.forName(arrayTypeName);
}
}
} catch (ClassNotFoundException e) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment