mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8375742: Test java/lang/invoke/MethodHandleProxies/Driver.java does not run Unnamed.java
Reviewed-by: jvernee
This commit is contained in:
parent
42439eb60c
commit
aaca0a2c1f
@ -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
|
||||
*/
|
||||
|
||||
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user