changeset 16608:a3e5bc744553

8158281: java_sql_Timestamp.java fails with AssertionError Reviewed-by: mchung
author lancea
date Tue, 31 May 2016 21:27:28 -0400
parents 52c05fa4079f
children b87b1112263f
files src/java.desktop/share/classes/java/beans/MetaData.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/java/beans/MetaData.java	Tue May 31 17:54:41 2016 -0700
+++ b/src/java.desktop/share/classes/java/beans/MetaData.java	Tue May 31 21:27:28 2016 -0400
@@ -297,7 +297,7 @@
 
     private static Method getNanosMethod() {
         try {
-            Class<?> c = Class.forName("java.sql.Timestamp", true, null);
+            Class<?> c = Class.forName("java.sql.Timestamp", true, ClassLoader.getPlatformClassLoader());
             return c.getMethod("getNanos");
         } catch (ClassNotFoundException e) {
             return null;