Modify ↓
Opened 5 years ago
Closed 5 years ago
#20587 closed defect (fixed)
[PATCH] QuadBuckets `toArray` can infinitely recurse
| Reported by: | taylor.smock | Owned by: | Don-vip |
|---|---|---|---|
| Priority: | normal | Milestone: | 21.02 |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
This behavior is somewhat dependent upon the JVM implementation of ArrayList<>(Collection<T> collection).
However, if the constructor uses toArray to get the initial array for the ArrayList, we have something that looks like this:
toArray -> toList -> toArray -> toList -> toArray -> ...
Attachments (1)
Change History (3)
by , 5 years ago
| Attachment: | 20587.patch added |
|---|
comment:1 by , 5 years ago
| Milestone: | → 21.02 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.



Use
this.stream().toArray()instead ofthis.toList().toArray()for thetoArray()function, and document why