Skip to content
Permalink
Browse files
8268908: Update test/jdk/valhalla/valuetypes tests to prepare for jtr…
…eg 6 and other clean up
  • Loading branch information
Mandy Chung committed Jun 16, 2021
1 parent fa11596 commit 52ee195b05474ba561c0e0886fcb2cc58fd93edb
@@ -791,6 +791,10 @@ public Void run() {
* superinterface of, the class or interface represented by the specified
* {@code Class} parameter. It returns {@code true} if so;
* otherwise it returns {@code false}. If this {@code Class}
* object represents the {@linkplain #isPrimaryType() reference type}
* of a {@linkplain #isPrimitiveClass() primitive class}, this method
* return {@code true} if the specified {@code Class} parameter represents
* the same primitive class. If this {@code Class}
* object represents a primitive type, this method returns
* {@code true} if the specified {@code Class} parameter is
* exactly this {@code Class} object; otherwise it returns
@@ -799,9 +803,9 @@ public Void run() {
* <p> Specifically, this method tests whether the type represented by the
* specified {@code Class} parameter can be converted to the type
* represented by this {@code Class} object via an identity conversion
* or via a widening reference conversion. See <cite>The Java Language
* Specification</cite>, sections {@jls 5.1.1} and {@jls 5.1.4},
* for details.
* or via a widening reference conversion or via a primitive widening
* conversion. See <cite>The Java Language Specification</cite>,
* sections {@jls 5.1.1} and {@jls 5.1.4}, for details.
*
* @param cls the {@code Class} object to be checked
* @return the {@code boolean} value indicating whether objects of the
@@ -4313,7 +4313,9 @@ public static MethodHandle arrayElementGetter(Class<?> arrayClass) throws Illega
* <p> When the returned method handle is invoked,
* the array reference and array index are checked.
* A {@code NullPointerException} will be thrown if the array reference
* is {@code null} and an {@code ArrayIndexOutOfBoundsException} will be
* is {@code null} or if the array's element type is a {@link Class#isValueType()
* a primitive value type} and attempts to set {@code null} in the
* array element. An {@code ArrayIndexOutOfBoundsException} will be
* thrown if the index is negative or if it is greater than or equal to
* the length of the array.
*

0 comments on commit 52ee195

Please sign in to comment.