jersey
  1. jersey
  2. JERSEY-1458

UriBuilder#resolveTemplate(Map) does not throw IAE.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-m08
    • Fix Version/s: 2.0-m10, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      javadoc says:

      java.lang.IllegalArgumentException - if the name-value map or any of the names or values in the map is null.

      but this does not throw any exception:

      		Map<String, Object> map = new HashMap<String, Object>();
      		map.put("a", "xyz");
      		map.put(null, "path");
      		UriBuilder builder = UriBuilder.fromPath("").path("{a}/{b}");
      		builder.resolveTemplates(map);
      

        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 - 2 hours, 30 minutes Time Not Required
              2h 30m