jersey
  1. jersey
  2. JERSEY-1262

Evaluate and possibly fix AcceptableMediaType.equals() vs. MediaType.equals() impl.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-m06, 2.0
    • Component/s: None
    • Labels:
      None

      Description

      For JSON, I get an instance of org.glassfish.jersey.message.internal.AcceptableMediaType with toString() = "application/json"

      MediaType.APPLICATION_JSON_TYPE.equals(acceptableMediaType) returns true

      acceptableMediaType.equals(MediaType.APPLICATION_JSON_TYPE); returns false

      This behavior has changed since the Jersey upgrade. Prior to the upgrade, both returned true.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Marek Potociar
            Reporter:
            Marek Potociar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour
              1h