JDK-8057919 - Java Issue Tracker
The method toMethodDescriptorString is more suitable if unambiguous spellings are required. Meanwhile, if we were to use Class.getName to build MethodType.
The method toMethodDescriptorString is more suitable if unambiguous spellings are required. Meanwhile, if we were to use Class.getName to build MethodType.
Feb 5, 1997 ... ... Object.class. The synthetic static helper method class$() generated to determine the value of the class literal is immune to normal JLS ...
JDK-6201178 - (coll) Add E[] toArray(Class) so that an array instance is not required.The c.size() information may be inaccurate by the time c.toArray() is called, possibly leading to the method (rarely) returning an array with trailing null elements.
In the process, we unify different method selection algorithms used by the JVM. The reflection API of <code>java.lang.Class</code> is enhanced to support nest- ...
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[].
JavaScript programs that reference java.lang.Class objects are now limited to the following methods: ... objects usually expect arrays to expose the java.
Compilation with javac does not show this bug - you need jikes (or else manually assembling a .class file to call invokevirtual String[].clone()). $ jikes Foo.java $.All methods on arrays are inherited from class Object except the clone method, which arrays override.