Modify ↓
Opened 16 months ago
Closed 16 months 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)
Changed 16 months ago by
Attachment: | 20587.patch added |
---|
comment:1 Changed 16 months ago by
Milestone: | → 21.02 |
---|---|
Owner: | changed from team to Don-vip |
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