mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
Merge
This commit is contained in:
commit
913b8702d1
59 changed files with 834 additions and 306 deletions
|
@ -89,16 +89,15 @@ import sun.reflect.annotation.*;
|
|||
import sun.reflect.misc.ReflectUtil;
|
||||
|
||||
/**
|
||||
* Instances of the class {@code Class} represent classes and interfaces
|
||||
* in a running Java application. An enum type is a kind of class and an
|
||||
* annotation type is a kind of interface. Every array also
|
||||
* belongs to a class that is reflected as a {@code Class} object
|
||||
* that is shared by all arrays with the same element type and number
|
||||
* of dimensions. The primitive Java types ({@code boolean},
|
||||
* {@code byte}, {@code char}, {@code short},
|
||||
* {@code int}, {@code long}, {@code float}, and
|
||||
* {@code double}), and the keyword {@code void} are also
|
||||
* represented as {@code Class} objects.
|
||||
* Instances of the class {@code Class} represent classes and
|
||||
* interfaces in a running Java application. An enum type and a record
|
||||
* type are kinds of class; an annotation type is a kind of
|
||||
* interface. Every array also belongs to a class that is reflected as
|
||||
* a {@code Class} object that is shared by all arrays with the same
|
||||
* element type and number of dimensions. The primitive Java types
|
||||
* ({@code boolean}, {@code byte}, {@code char}, {@code short}, {@code
|
||||
* int}, {@code long}, {@code float}, and {@code double}), and the
|
||||
* keyword {@code void} are also represented as {@code Class} objects.
|
||||
*
|
||||
* <p> {@code Class} has no public constructor. Instead a {@code Class}
|
||||
* object is constructed automatically by the Java Virtual Machine
|
||||
|
|
|
@ -71,7 +71,8 @@ package java.lang.annotation;
|
|||
* @jls 4.1 The Kinds of Types and Values
|
||||
*/
|
||||
public enum ElementType {
|
||||
/** Class, interface (including annotation type), or enum declaration */
|
||||
/** Class, interface (including annotation type), enum, or record
|
||||
* declaration */
|
||||
TYPE,
|
||||
|
||||
/** Field declaration (includes enum constants) */
|
||||
|
|
|
@ -1451,7 +1451,7 @@ public class MethodHandles {
|
|||
* <li>If the new lookup class is in the same module as the old lookup class,
|
||||
* the new previous lookup class is the old previous lookup class.
|
||||
* <li>If the new lookup class is in a different module from the old lookup class,
|
||||
* the new previous lookup class is the the old lookup class.
|
||||
* the new previous lookup class is the old lookup class.
|
||||
*</ul>
|
||||
* <p>
|
||||
* The resulting lookup's capabilities for loading classes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue