bugs.java.com
Bug ID: JDK-8192841 Collection.toArray() spec should be explicit about...
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.)