mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8298797: Specification of some restricted methods is incorrect
Reviewed-by: jvernee, pminborg
This commit is contained in:
parent
0ba4734891
commit
f771c56e16
6 changed files with 19 additions and 23 deletions
|
@ -180,9 +180,7 @@ public sealed interface Linker permits AbstractLinker {
|
|||
*
|
||||
* @return a linker for the ABI associated with the OS and processor where the Java runtime is currently executing.
|
||||
* @throws UnsupportedOperationException if the underlying native platform is not supported.
|
||||
* @throws IllegalCallerException if access to this method occurs from a module {@code M} and the command line option
|
||||
* {@code --enable-native-access} is specified, but does not mention the module name {@code M}, or
|
||||
* {@code ALL-UNNAMED} in case {@code M} is an unnamed module.
|
||||
* @throws IllegalCallerException If the caller is in a module that does not have native access enabled.
|
||||
*/
|
||||
@CallerSensitive
|
||||
static Linker nativeLinker() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue