-
Type:
Bug
-
Status: New
-
Priority:
P4
-
Resolution: Unresolved
-
Affects Version/s: 8
-
Fix Version/s: None
-
Component/s: other-libs
-
Labels:
-
Subcomponent:
-
CPU:x86_64
-
OS:generic
A DESCRIPTION OF THE PROBLEM :
MimeType does not implement equals/hashcode. Hence, it is not possible to compare two objects with identical mime type string. Is there any good reason to fall back on Object.equals?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
@Test
public void test() throws MimeTypeParseException {
assertEquals(new MimeType("application/text"), new MimeType("application/text"));
}
ACTUAL -
false
MimeType does not implement equals/hashcode. Hence, it is not possible to compare two objects with identical mime type string. Is there any good reason to fall back on Object.equals?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
@Test
public void test() throws MimeTypeParseException {
assertEquals(new MimeType("application/text"), new MimeType("application/text"));
}
ACTUAL -
false