< prev index next > test/jdk/java/lang/reflect/callerCache/ReflectionCallerCacheTest.java
Print this page
/*
! * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
/*
! * Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
* @test
* @bug 8202113
* @summary Test the caller class loader is not kept strongly reachable
* by reflection API
* @library /test/lib/
+ * @requires vm.compMode != "Xcomp"
* @modules jdk.compiler
* @build ReflectionCallerCacheTest Members jdk.test.lib.compiler.CompilerUtils
* @run testng/othervm ReflectionCallerCacheTest
*/
< prev index next >