Clarification in Attributes equal

Philipp Kunz philipp.kunz at
Thu Jan 17 22:53:05 UTC 2019


In the JavaDoc comment for java.util.jar.Attributes#equals on line 269
it says:
[...] Returns true if the given object is also an instance of
Attributes [...]
but that is not actually true. Passing a LinkedHashMap results also in
true returned given equal content of both maps.
Comment and implementation don't match perfectly. But which way it
should be?
Could not be less important probably, so please excuse me if it's like


More information about the core-libs-dev mailing list