Results for “java array string 1 code find object example script site:bugs.java.com python”
bugs.java.com
Bug ID: JDK-8030126 (ann) Unnecessary String allocation for...
end code. In the above example, each call to m[1-3].getAnnotation(RequestWrapper.class) allocates a unique LinkedHashMap with a unique String instance of "targetNamespace" for the key, and a unique String instance of "myTns" for the value.
bugs.java.com
Bug ID: JDK-8160406 Collection.toArray() spec should be explicit about...
Collection.toArray() is specified to return an object of type Object[], but since arrays are covariant, that requirement is met by any array of a subtype of Object, for example, String[]. It's subtle, but it's clearly, if not explicitly, a bug to return an array of a subtype. See JDK-6260652.
bugs.java.com
Bug ID: JDK-4750641 REGRESSION: Array.clone() broken in 1.4.1-b21
Jikes 1.16 emits <array>.clone() rather than Object.clone() in the bytecode, in accordance with JLS 13.1 (javac still does not do this, but that is a subject for a different bug report). With earlier VMs, the sample program below worked, but now it causes a VerifyError.