/openjdk10/nashorn/test/script/basic/ |
H A D | NASHORN-620.js | 31 print([].length); 32 print([,].length); 33 print([,,].length); 34 print([,4,].length); 35 print([1,,3,].length);
|
H A D | JDK-8026805.js | 25 * JDK-8026805: Array.prototype.length doesn't work as expected 31 if (Array.prototype.length !== 0) { 32 throw new Error("Initial length not 0"); 37 if (Array.prototype.length !== 4) { 38 throw new Error("length not updated to 4"); 41 Array.prototype.length = 0; 43 if (Array.prototype.length !== 0) { 44 throw new Error("length not reset to 0");
|
H A D | JDK-8010720.js | 25 * JDK-8010720: Linkage problem with java.lang.String.length() 33 if (s.length() != 7) { 34 fail("s.length() does not return expected value"); 37 if (s.length != 7) { 38 fail("s.length does not return expected value"); 42 if ('hello'.length() != 5) { 43 fail("'hello'.length() does not return expected value"); 46 if ('hello'.length != 5) { 47 fail("'hello'.length does not return expected value");
|
H A D | NASHORN-202.js | 31 if (Date.prototype.toJSON.length !== 1) { 32 throw new Error("Date.prototype.toJSON.length !== 1");
|
H A D | NASHORN-237.js | 31 if (JSON.parse.length !== 2) { 32 fail("JSON.parse.length !== 2, but " + JSON.parse.length); 35 if (JSON.stringify.length !== 3) { 36 fail("JSON.stringify.length !== 3, but " + JSON.stringify.length);
|
H A D | NASHORN-463.js | 25 * NASHORN-463 : array length property is incorrect when an element is set at large index. 32 //length is the max value of Uint type 34 if (arr.length !== 4294967295) { 35 fail("wrong array length : " + arr.length);
|
H A D | NASHORN-85.js | 25 * NASHORN-85 : String.prototype.length field should not be undefined 31 print("String.prototype.length is " + String.prototype.length);
|
H A D | NASHORN-169.js | 25 * NASHORN-169 : Array.prototype has 'length' property with the initial value of 0. 31 if (Array.prototype.length != 0.0) { 32 fail("Array.prototype.length should be 0.0");
|
H A D | setlength.js | 25 * Test set array length. 32 print(a.length); 34 a.length = 2; 35 print(a.length); 37 a.length = 10; 38 print(a.length); 40 a.length = 4; 41 print(a.length); 43 a.length = 8; 44 print(a.length); [all...] |
H A D | JDK-8010804.js | 32 print(x.length); 34 print(x.length); 36 print(x.length); 37 print(x.slice(4294967293).length); 38 print(x.slice(4294967294).length); 39 print(x.slice(4294967295).length); 40 print(x.slice(4294967296).length); 42 print(x.slice(-4294967293).length); 43 print(x.slice(-4294967294).length); 44 print(x.slice(-4294967295).length); [all...] |
H A D | JDK-8066215.js | 25 * JDK-8066215: Fuzzing bug: length valueOf bug 31 function defineLength(arr, length) { 32 Object.defineProperty(arr, "length", { 35 print("value retrieved: " + length); 36 return length; 40 print("done: " + arr.length + ", " + typeof arr.length);
|
/openjdk10/nashorn/test/script/error/ |
H A D | strictmode.js | 34 delete func.length;
|
/openjdk10/jdk/src/java.desktop/share/classes/javax/sound/midi/ |
H A D | MidiMessage.java | 42 * <li>The total length of the message in bytes (the status byte plus any data 77 * subsequent bytes up to the length of the message are data bytes for this 90 protected int length = 0; field in class:MidiMessage 104 this.length = data.length; 114 * @param length the number of bytes in the data byte array 118 protected void setMessage(byte[] data, int length) argument 120 if (length < 0 || (length > 0 && length > dat [all...] |
H A D | SysexMessage.java | 32 * defined length. Data from a system exclusive message from a MIDI file should 35 * finally the end-of-exclusive flag (0xF7). The length reported by the 36 * {@code SysexMessage} object is therefore the length of the system exclusive 48 * {@code SysexMessages}. In this case, the length of the system exclusive data 123 * @param length the length of the valid message data in the array, 125 * than or equal to {@code data.length} 133 public SysexMessage(byte[] data, int length) argument 136 setMessage(data, length); 147 * @param length th 157 SysexMessage(int status, byte[] data, int length) argument 185 setMessage(byte[] data, int length) argument 202 setMessage(int status, byte[] data, int length) argument [all...] |
H A D | MetaMessage.java | 65 * The length of the actual message in the data array. This is used to 67 * are the status byte, the type byte, and the variable-length-int 68 * describing the length of the message. 89 * @param length an amount of bytes in the {@code data} byte array; it 91 * {@code data.length} 99 public MetaMessage(int type, byte[] data, int length) argument 102 setMessage(type, data, length); // can throw InvalidMidiDataException 115 if (data.length>=3) { 116 dataLength=data.length-3; 118 while (pos<data.length 143 setMessage(int type, byte[] data, int length) argument [all...] |
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/org/objectweb/asm/ |
H A D | ByteVector.java | 78 int length; field in class:ByteVector 106 int length = this.length; 107 if (length + 1 > data.length) { 110 data[length++] = (byte) b; 111 this.length = length; 124 int length = this.length; [all...] |
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/AEAD/ |
H A D | Helper.java | 26 public static byte[] generateBytes(int length) { argument 27 byte[] bytes = new byte[length]; 28 for (int i = 0; i < length; i++) {
|
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/util/ |
H A D | XMLStringBuffer.java | 38 * <code>offset</code>, and <code>length</code> fields directly. 89 this(s.length()); 94 public XMLStringBuffer(char[] ch, int offset, int length) { argument 95 this(length); 96 append(ch, offset, length); 101 this(s.length); 112 length = 0; 121 if(this.length + 1 > this.ch.length){ 122 int newLength = this.ch.length * 162 append(char[] ch, int offset, int length) argument [all...] |
/openjdk10/jdk/src/java.base/share/classes/sun/security/util/ |
H A D | Length.java | 29 * The Length interface defines the length of an object 34 * Gets the length of this object 37 * the length should be measured in bits. 39 * @return the length of this object 42 public int length(); method in interface:Length
|
/openjdk10/jdk/test/java/beans/PropertyEditor/ |
H A D | TestStringClassJava.java | 36 int length = 0x1000; 38 StringBuilder sb = new StringBuilder(length); 39 while (0 < length--) 40 sb.append((char) length);
|
/openjdk10/langtools/test/tools/javac/diags/examples/StaticImportOnlyClassesAndInterfaces/ |
H A D | StaticImportOnlyClassesAndInterfaces.java | 28 import static p.Other.array.length;
|
/openjdk10/jdk/src/java.desktop/share/classes/javax/imageio/stream/ |
H A D | IIOByteBuffer.java | 30 * an offset and length within that array. {@code IIOByteBuffer} 47 private int length; field in class:IIOByteBuffer 51 * given byte array, offset, and length. 55 * @param length an int specifying the length of the data of 58 public IIOByteBuffer(byte[] data, int offset, int length) { argument 61 this.length = length; 119 * Returns the length of the data of interest within the byte 122 * @return an int length 140 setLength(int length) argument [all...] |
/openjdk10/jdk/test/java/lang/StringBuffer/ |
H A D | GetCharsOverLength.java | 39 {0, 0, dst.length + 1}, 40 {0, 0, dst.length + 2}, 41 {0, 0, dst.length + 20}, 42 {5, 5, dst.length + 1}, 43 {5, 5, dst.length + 2}, 44 {5, 5, dst.length + 20} 47 for (int i = 0; i < a.length; i++) {
|
/openjdk10/jdk/src/java.desktop/share/classes/com/sun/media/sound/ |
H A D | DLSSampleLoop.java | 39 long length; field in class:DLSSampleLoop 42 return length; 45 public void setLength(long length) { argument 46 this.length = length;
|
/openjdk10/jdk/src/java.rmi/share/classes/sun/rmi/log/ |
H A D | LogInputStream.java | 33 private int length; field in class:LogInputStream 39 * @param length the total number of bytes allowed to be read 42 public LogInputStream(InputStream in, int length) throws IOException { argument 44 this.length = length; 55 if (length == 0) 58 length = (c != -1) ? length - 1 : 0; 71 return read(b, 0, b.length); 85 if (length [all...] |