8158281: java_sql_Timestamp.java fails with AssertionError

Reviewed-by: mchung
This commit is contained in:
Lance Andersen 2016-05-31 21:27:28 -04:00
parent 246a39a5b1
commit 4300a5a412

View File

@ -297,7 +297,7 @@ static final class java_sql_Timestamp_PersistenceDelegate extends java_util_Date
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;