-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 5.0
-
Component/s: core-libs
-
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
-