mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6260652: (coll) Arrays.asList(x).toArray().getClass() should be Object[].class
Return Arrays.copyOf(a, a.length, Object[].class) Reviewed-by: igerasim, psandoz
This commit is contained in:
parent
99f867bded
commit
57996d703c
6 changed files with 10 additions and 12 deletions
|
@ -3820,7 +3820,7 @@ public class Arrays {
|
|||
|
||||
@Override
|
||||
public Object[] toArray() {
|
||||
return a.clone();
|
||||
return Arrays.copyOf(a, a.length, Object[].class);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue