-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b07
-
Not verified
The javadoc for Attributes.equals says the following:
-------------------
/**
* Compares the specified Attributes object with this Map for equality.
* Returns true if the given object is also an instance of Attributes
* and the two Attributes objects represent the same mappings.
*
* @param o the Object to be compared
* @return true if the specified Object is equal to this Map
*/
-------------------
The implementation does not validate the the object passed to equals is an instance of Attributes so it could just be a Map.
-------------------
/**
* Compares the specified Attributes object with this Map for equality.
* Returns true if the given object is also an instance of Attributes
* and the two Attributes objects represent the same mappings.
*
* @param o the Object to be compared
* @return true if the specified Object is equal to this Map
*/
-------------------
The implementation does not validate the the object passed to equals is an instance of Attributes so it could just be a Map.
- csr for
-
JDK-8217396 java.util.jar.Attributes:equals() javadoc is not accurate
- Closed