JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code for inner class constructors in the wrong order. Therefore ... Object.class. The synthetic static helper method class$() generated ...
Feb 5, 1997 ... ... code for inner class constructors in the wrong order. Therefore ... Object.class. The synthetic static helper method class$() generated ...
Jul 12, 2016 ... class), nulls, annotation values, and array data. (See JDK-8161250 ... code are TBD, but see static methods above for an example.
The behaviour can even be "cloaked" by using java.util.regex classes: Matcher.group() etc. which seem to use substring internally for String extraction. This way it's nearly impossible to detect the memory leak. This behaviour is totally independent of OS, Java Version, VM type etc.
Java SE. Community. Bug Database.The Collection.toArray() method returns Object[] but it doesn't make clear that the runtime type of the returned array must be Object[]. (Oddly, that is specified in toArray(T[]) which is in the wrong place.)
JDK-6260652 - (coll) Arrays.asList(x).toArray().getClass() should be Object[].class.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[].
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.
JDK-6201178 - (coll) Add E[] toArray(Class) so that an array instance is not required.An attempt to salvage the implementation is to code like this: return c.<T>toArray((T[])Array.newInstance(t, 0)); but that pays a penalty for an extra empty array allocation for each call to toArray.