changeset 57046:155014d964c2 nestmates

[nestmates] fix LookupDefineClass microbenchmark build failure
author mchung
date Fri, 13 Sep 2019 08:13:10 -0700
parents c9b779dc045f
children b421bb1eb3db
files test/micro/org/openjdk/bench/java/lang/invoke/LookupDefineClass.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/micro/org/openjdk/bench/java/lang/invoke/LookupDefineClass.java	Fri Sep 13 08:12:16 2019 -0700
+++ b/test/micro/org/openjdk/bench/java/lang/invoke/LookupDefineClass.java	Fri Sep 13 08:13:10 2019 -0700
@@ -201,7 +201,7 @@
         @Benchmark
         public Class<?> load() throws ClassNotFoundException {
             try {
-                return HOST_LOOKUP.defineHiddenClass(X_BYTECODE, false, WEAK);
+                return HOST_LOOKUP.defineHiddenClass(X_BYTECODE, false, WEAK).lookupClass();
             } catch (IllegalAccessException e) {
                 throw new InternalError(e);
             }
@@ -269,7 +269,7 @@
         @Benchmark
         public Class<?> load() throws ClassNotFoundException {
             try {
-                return HOST_LOOKUP.defineHiddenClass(X_BYTECODE, false);
+                return HOST_LOOKUP.defineHiddenClass(X_BYTECODE, false).lookupClass();
             } catch (IllegalAccessException e) {
                 throw new InternalError(e);
             }