-
Bug
-
Resolution: Fixed
-
P3
-
11
-
b07
-
b20
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8206710 | 12 | Stuart Marks | P3 | Resolved | Fixed | team |
JDK-8206484 | 11.0.1 | Stuart Marks | P3 | Resolved | Fixed | b01 |
Recent changes (JDK-8193128) to the unmodifiable collections changed the sublist implementation. This has the side effect of causing List.copyOf() no longer to make copies of sublists. This might seem like an optimization, but in this case an actual copy should be made. Copying sublists is useful because it makes a copy of a portion of the backing list, which can then be garbage collected. Making a copy also allows the result to be serializable, whereas in general sublists are not serializable. This last is actually a conformance issue, since List.copyOf() requires the result to be serializable.
- backported by
-
JDK-8206484 List.copyOf() fails to copy sublists
-
- Resolved
-
-
JDK-8206710 List.copyOf() fails to copy sublists
-
- Resolved
-
- relates to
-
JDK-8193128 Reduce number of implementation classes returned by List/Set/Map.of()
-
- Resolved
-