changeset 58915:48b82b400ed3

8243274: suppress warnings in LookupDefineClass microbenchmarks due to JDK-8243156 Reviewed-by: lfoltan
author mchung
date Tue, 21 Apr 2020 07:08:55 -0700
parents 30ec85283758
children 4b50e4e03c8b
files test/micro/org/openjdk/bench/java/lang/invoke/LookupDefineClass.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/micro/org/openjdk/bench/java/lang/invoke/LookupDefineClass.java	Tue Apr 21 06:55:38 2020 -0700
+++ b/test/micro/org/openjdk/bench/java/lang/invoke/LookupDefineClass.java	Tue Apr 21 07:08:55 2020 -0700
@@ -230,6 +230,7 @@
         private static final MethodHandles.Lookup lookup =
                 defineHostClass(new Loader("anonymous-class-loader"),"foo.AnonymousHost", FOO_HOST_BYTES);
 
+        @SuppressWarnings("deprecation")
         @Benchmark
         public Class<?> load() throws ClassNotFoundException {
             return unsafe.defineAnonymousClass(lookup.lookupClass(), X_BYTECODE, null);