RFR: 8062194: java.util.jar.Attributes should use insertion-ordered iteration

Alan Bateman Alan.Bateman at oracle.com
Fri Nov 7 09:52:47 UTC 2014


On 05/11/2014 00:06, Martin Buchholz wrote:
> :
> So ... there is the question whether we are tightening the spec for
> Attributes and its subclasses or only for Attributes.
> Subclasses of Attribute that would change the order are likely to be
> very rare (is there a use case?) - I'm OK with those becoming
> non-spec-compliant subclasses, especially given that they will
> continue to work just fine in practice.  So in my proposal the
> tightening applies to subclasses as well.
What you have is okay but I think if I were doing this then I would keep 
the existing wording in the constructor (the update to the class 
description is good). The reason is that the new wording might distract 
the reader into thinking about the iteration order of the given 
Attributes when it's just not interesting here.

-Alan.



More information about the core-libs-dev mailing list