Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236541

javax.activation.MimeType does not implement equals

    Details

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: