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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 3.0.14.Final
    • 3.0.17.Final
    • None
    • 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

              rsigal@redhat.com Ronald Sigal
              kanovotn Katerina Odabasi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: