changeset 9578:3f1ab53fc90d

Add call to forName() so a class in package sun/invoke/util/ is referenced before requesting its location.
author hseigel
date Wed, 18 Nov 2015 09:38:55 -0500
parents 222c2519e1cb
children f4f2580e950a
files test/runtime/getSysPackage/GetSysPkgTest.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtime/getSysPackage/GetSysPkgTest.java	Wed Nov 18 12:52:31 2015 +0100
+++ b/test/runtime/getSysPackage/GetSysPkgTest.java	Wed Nov 18 09:38:55 2015 -0500
@@ -109,6 +109,9 @@
         getPkg("java/lang/", "jrt:/java.base");
         getPkg("java/lang", null);              // Need trailing '/'
         getPkg("javax/script/", null);          // Package not defined
+
+        // Make sure a class in the package is referenced.
+        Class newClass = Class.forName("sun.invoke.util.Wrapper");
         getPkg("sun/invoke/util/", "jrt:/java.base");
         getPkg("java/nio/charset/", "jrt:/java.base");