提交 acd0a0ff 编写于 作者: P prr

8026176: Enhance document printing

Reviewed-by: bae, jgodinez
上级 e810dc5d
...@@ -91,7 +91,10 @@ public final class SimpleDoc implements Doc { ...@@ -91,7 +91,10 @@ public final class SimpleDoc implements Doc {
Class repClass = null; Class repClass = null;
try { try {
repClass = Class.forName(flavor.getRepresentationClassName()); String className = flavor.getRepresentationClassName();
sun.reflect.misc.ReflectUtil.checkPackageAccess(className);
repClass = Class.forName(className, false,
Thread.currentThread().getContextClassLoader());
} catch (Throwable e) { } catch (Throwable e) {
throw new IllegalArgumentException("unknown representation class"); throw new IllegalArgumentException("unknown representation class");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册