aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yi Yang <qingfeng.yy@alibaba-inc.com> 2021-07-12 10:52:18 +0800
committerGravatar Yi Yang <qingfeng.yy@alibaba-inc.com> 2021-07-12 10:52:18 +0800
commit1d4ad2cae5502fcf99baa8bbd875e8fb24140c47 (patch)
tree80fdea83bee976a02afa25bfead8af1b1c8dd61f
parent8aa4e1d7c4e94ad0407714b3b03cae03e752ae12 (diff)
downloadjdk-pr/4714.tar.gz
jdk-pr/4714.zip
mistakepr/4714
-rw-r--r--test/jdk/java/lang/invoke/lambda/superProtectedMethod/ProtectedMethodInOtherPackage.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/jdk/java/lang/invoke/lambda/superProtectedMethod/ProtectedMethodInOtherPackage.java b/test/jdk/java/lang/invoke/lambda/superProtectedMethod/ProtectedMethodInOtherPackage.java
index 9cc7ba28f8f..666ba5c254b 100644
--- a/test/jdk/java/lang/invoke/lambda/superProtectedMethod/ProtectedMethodInOtherPackage.java
+++ b/test/jdk/java/lang/invoke/lambda/superProtectedMethod/ProtectedMethodInOtherPackage.java
@@ -24,7 +24,7 @@
/*
* @test
* @bug 8227415 8254975 8270056
- * @run testng/othervm p.SuperMethodTest
+ * @run testng/othervm p.ProtectedMethodInOtherPackage
* @summary method reference to a protected method inherited from its
* superclass in a different runtime package where
* lambda proxy class has no access to it.
@@ -50,7 +50,7 @@ import java.util.function.Function;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
-public class SuperMethodTest {
+public class ProtectedMethodInOtherPackage {
@Test
public static void remotePackageSameLoader() {
Sub_I sub = new Sub_I();
@@ -102,7 +102,7 @@ public class SuperMethodTest {
}
@Test
- public static void splitPackage1() throws Throwable {
+ public static void protectedStaticMethodInSplitPackage() throws Throwable {
ClassLoader parent = new Loader("loader-A1", null, A1.class);
ClassLoader loader = new Loader("loader-B1", parent, B1.class);
Class<?> aClass1 = Class.forName(A1.class.getName(), false, loader);