提交 e97e7e5f 编写于 作者: P poonam

8087350: Improve array conversions

Reviewed-by: jbachorik, kevinw
上级 4c37f228
......@@ -761,11 +761,15 @@ public class OpenMBeanAttributeInfoSupport
Class<?> stringArrayClass;
Class<?> targetArrayClass;
try {
String baseClassName = baseType.safeGetClassName();
// check access to the provided base type class name and bail out early
ReflectUtil.checkPackageAccess(baseClassName);
stringArrayClass =
Class.forName(squareBrackets + "Ljava.lang.String;");
targetArrayClass =
Class.forName(squareBrackets + "L" + baseType.safeGetClassName() +
";");
Class.forName(squareBrackets + "L" + baseClassName + ";");
} catch (ClassNotFoundException e) {
throw new NoClassDefFoundError(e.toString()); // can't happen
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册