< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/aotCache/ExcludedClasses.java

Print this page
@@ -60,12 +60,18 @@
  public class ExcludedClasses {
      static final String appJar = ClassFileInstaller.getJarPath("app.jar");
      static final String mainClass = "TestApp";
  
      public static void main(String[] args) throws Exception {
-         Tester tester = new Tester();
-         tester.runAOTWorkflow();
+         {
+           Tester tester = new Tester();
+           tester.run(new String[] {"AOT"} );
+         }
+         {
+           Tester tester = new Tester();
+           tester.run(new String[] {"LEYDEN"} );
+         }
      }
  
      static class Tester extends CDSAppTester {
          public Tester() {
              super(mainClass);

@@ -105,11 +111,11 @@
  
      public static void main(String args[]) throws Exception {
          // In new workflow, classes from custom loaders are passed from the preimage
          // to the final image. See ClassPrelinker::record_unregistered_klasses().
          custInstance = initFromCustomLoader();
-         custArrayInstance = Array.newInstance(custInstance.getClass(), 0);
+         custArrayInstance = java.lang.reflect.Array.newInstance(custInstance.getClass(), 0);
          System.out.println(custArrayInstance);
          System.out.println("Counter = " + Foo.hotSpot());
      }
  
      static Object initFromCustomLoader() throws Exception {
< prev index next >