jersey
  1. jersey
  2. JERSEY-1578

WebTarget#resolve... does not return the same target when empty map argument

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-m09
    • Fix Version/s: 2.0-m13, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      Javadoc of e.g. WebTarget#resolveTemplatesFromEncoded says:

      A call to the method with an empty parameter map is ignored, i.e. same WebTarget instance is returned.

      But

      WebTarget target = ...
      WebTarget other = target.resolveTemplatesFromEncoded(new TreeMap<String, Object>());
      

      target != other

      The same for

      target.resolveTemplates(new TreeMap<String, Object>());
      

      and

      target.resolveTemplates(new TreeMap<String, Object>(), false);
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Pavel Bucek
            Reporter:
            jan.supol
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 3 hours
              3h
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 30 minutes Time Not Required
              30m