mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-20 07:15:31 +00:00
8158281: java_sql_Timestamp.java fails with AssertionError
Reviewed-by: mchung
This commit is contained in:
parent
246a39a5b1
commit
4300a5a412
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user