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

javax.activation.MimeType does not implement equals

      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

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: