-
Bug
-
Resolution: Unresolved
-
P4
-
5.0
-
None
The List implementation com.sun.java.util.jar.pack.ConstantPool.Index does not correctly implement List.toArray:
public Entry[] toArray() {
return toArray(new Entry[size()]);
}
The result of toArray() should be equivalent to toArray(new Object[0]).
public Entry[] toArray() {
return toArray(new Entry[size()]);
}
The result of toArray() should be equivalent to toArray(new Object[0]).
- relates to
-
JDK-6260652 (coll) Arrays.asList(x).toArray().getClass() should be Object[].class
-
- Closed
-