src/java.base/share/classes/java/lang/reflect/Array.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/java.base/share/classes/java/lang/reflect/Array.java Fri Jun 26 17:30:23 2015
--- new/src/java.base/share/classes/java/lang/reflect/Array.java Fri Jun 26 17:30:22 2015
*** 23,32 ****
--- 23,34 ----
* questions.
*/
package java.lang.reflect;
+ import jdk.internal.HotSpotIntrinsicCandidate;
+
/**
* The {@code Array} class provides static methods to dynamically create and
* access Java arrays.
*
* <p>{@code Array} permits widening conversions to occur during a get or set
*** 117,126 ****
--- 119,129 ----
* @param array the array
* @return the length of the array
* @exception IllegalArgumentException if the object argument is not
* an array
*/
+ @HotSpotIntrinsicCandidate
public static native int getLength(Object array)
throws IllegalArgumentException;
/**
* Returns the value of the indexed component in the specified
*** 475,484 ****
--- 478,488 ----
/*
* Private
*/
+ @HotSpotIntrinsicCandidate
private static native Object newArray(Class<?> componentType, int length)
throws NegativeArraySizeException;
private static native Object multiNewArray(Class<?> componentType,
int[] dimensions)
src/java.base/share/classes/java/lang/reflect/Array.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File