8158281: java_sql_Timestamp.java fails with AssertionError
authorlancea
Tue, 31 May 2016 21:27:28 -0400
changeset 38764 181a08b094a4
parent 38763 280093905c75
child 38765 b64f3ec3420e
8158281: java_sql_Timestamp.java fails with AssertionError Reviewed-by: mchung
jdk/src/java.desktop/share/classes/java/beans/MetaData.java
--- a/jdk/src/java.desktop/share/classes/java/beans/MetaData.java	Tue May 31 17:54:41 2016 -0700
+++ b/jdk/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;