--- old/src/java.base/share/classes/java/lang/Class.java 2018-03-06 15:23:14.000000000 -0800 +++ new/src/java.base/share/classes/java/lang/Class.java 2018-03-06 15:23:14.000000000 -0800 @@ -533,8 +533,8 @@ throws InstantiationException, IllegalAccessException { if (this.isValue()) { - throw new UnsupportedOperationException("newInstance on a value class " - + this.getName()); + throw new IllegalAccessException( + "cannot create new instance of value class " + this.getName()); } SecurityManager sm = System.getSecurityManager();