Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: ice box
    • Component/s: spec
    • Labels:
      None

      Description

      In Section 5.4 of the spec, the following code example is shown:

      Customer c = client.target("http://examples.org/customers/123")
        .request("application/xml").get(Customer.class);
      String newId = client.target("http://examples.org/gold-customers/")
        .request().post(xml(c), String.class);
      

      This won't compile. The xml method within the post method is missing Entity.

      Customer c = client.target("http://examples.org/customers/123")
        .request("application/xml").get(Customer.class);
      String newId = client.target("http://examples.org/gold-customers/")
        .request().post(Entity.xml(c), String.class);
      

        Activity

        Hide
        Santiago Pericas-Geertsen added a comment -

        It compiles with the correct import.

        Show
        Santiago Pericas-Geertsen added a comment - It compiles with the correct import.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ian Evans
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: