8375742: Test java/lang/invoke/MethodHandleProxies/Driver.java does not run Unnamed.java

Reviewed-by: jvernee
This commit is contained in:
Chen Liang 2026-01-20 21:54:56 +00:00
parent 42439eb60c
commit aaca0a2c1f
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2026, 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
@ -21,12 +21,12 @@
* questions.
*/
/**
/*
* @test
* @bug 8280377
* @build m1/* m2/* Unnamed
* @run testng/othervm m1/p1.Main
* @run testng/othervm Unnamed
* @run main/othervm Unnamed
* @summary Test MethodHandleProxies::asInterfaceInstance with a default
* method with varargs
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2026, 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
@ -39,7 +39,7 @@ public class Unnamed {
// verify that the caller has no access to the proxy created on an
// inaccessible interface
Method m = intf.getMethod("test", Object[].class);
assertFalse(m.canAccess(null));
Method m = intf.getMethod("test");
assertFalse(m.canAccess(t));
}
}