< prev index next >

src/java.base/share/classes/java/lang/Class.java

Print this page
rev 55688 : 8223349: [lworld] Reflection support on static <init> factory methods for inline types
Reviewed-by: jrose

*** 629,643 **** @CallerSensitive @Deprecated(since="9") public T newInstance() throws InstantiationException, IllegalAccessException { - if (this.isInlineClass()) { - throw new IllegalAccessException( - "cannot create new instance of an inline class " + this.getName()); - } - SecurityManager sm = System.getSecurityManager(); if (sm != null) { checkMemberAccess(sm, Member.PUBLIC, Reflection.getCallerClass(), false); } --- 629,638 ----
< prev index next >