Opened 4 weeks ago

Last modified 4 weeks ago

#2816 infoneeded_new defect

OrderedProperties is implementation dependent

Reported by: jogger Owned by:
Priority: minor Milestone: undecided
Component: api/general Version: 0.9.50
Keywords: Cc:
Parent Tickets: Sensitive: no

Description

In line 52 there is an addAll for an entrySet. If one goes deep down to the iterator invoked, one can see that there are fresh objects generated. This is why current code works.

This may change any time to the code other maps use returning always the same object with just fields updated. That is perfectly legal since this is a view only and would make the addAll end up with just a single entry.

Subtickets

Change History (1)

comment:1 Changed 4 weeks ago by zzz

Component: router/generalapi/general
Status: newinfoneeded_new

if that happened, it would break addAll or putAll everywhere, not just in OrderedProperties?, wouldn't it?

you have a proposed fix?

please use gitlab for new tickets.

Note: See TracTickets for help on using tickets.