8283274: Improve @jvms usage in java.base

Reviewed-by: iris
This commit is contained in:
Joe Darcy 2022-03-17 16:37:20 +00:00
parent 31df6a60a8
commit 5ef1990d6c
6 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 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
@ -96,7 +96,7 @@ public final class ConstantBootstraps {
* descriptor is specified by {@code name}.
*
* @param lookup unused
* @param name the descriptor (JVMS 4.3) of the desired primitive type
* @param name the descriptor (JVMS {@jvms 4.3}) of the desired primitive type
* @param type the required result type (must be {@code Class.class})
* @return the {@link Class} mirror
* @throws IllegalArgumentException if the name is not a descriptor for a

View file

@ -2759,7 +2759,7 @@ assertEquals("[x, y, z]", pb.command().toString());
/**
* Looks up a class by name from the lookup context defined by this {@code Lookup} object,
* <a href="MethodHandles.Lookup.html#equiv">as if resolved</a> by an {@code ldc} instruction.
* Such a resolution, as specified in JVMS 5.4.3.1 section, attempts to locate and load the class,
* Such a resolution, as specified in JVMS {@jvms 5.4.3.1}, attempts to locate and load the class,
* and then determines whether the class is accessible to this lookup object.
* <p>
* The lookup context here is determined by the {@linkplain #lookupClass() lookup class},