Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1282

RESTEasy should have some Provider to produce primitive types without @Produces annotation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.14.Final
    • Fix Version/s: 3.0.17.Final
    • Component/s: None
    • Labels:
      None

      Description

      RESTEasy should have some Provider to produce primitive types without @Produces annotation

      In RESTEasy 2, DefaultTextPlain provider was used to process return value of end-points, that don't have @Produces annotation and return primitives:

      @Path("postInt")
      @POST
      public Response postInt() throws Exception {
      	return Response.ok().entity(new Integer(8)).build();
      }
      

      In RESTEasy 3, DefaultTextPlain is not used (see comments of this jira). RESTEasy should contains provider for this purpose.

      This jira solves partially RESTEASY-1403

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ron_sigal Ronald Sigal
              Reporter:
              kanovotn Katerina Odabasi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: