Jasper Horn created CXF-6958:
--------------------------------

             Summary: Error in documentation
                 Key: CXF-6958
                 URL: https://issues.apache.org/jira/browse/CXF-6958
             Project: CXF
          Issue Type: Bug
            Reporter: Jasper Horn


On 
http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-Proxy-basedAPI
 in the code sample that reads:

{code}
@Path("/bookstore")
public interface BookStore {
   @GET
   Books getAllBooks();
    
   @Path("{id}")
   BookResource getBookSubresource(@PathParam("id") long id) throws 
NoBookFoundException;
}
 
public class BookStoreImpl implements BookStore {
   public Books getAllBooks() {}
    
   public Book getBookSubresource(long id) throws NoBookFoundException {}
}
 
public interface BookResource {
   @GET
   Book getBook();
}
 
public class BookResourceImpl implements BookResource {
   Book getBook() {}
}
{code}

Shouldn't that be 

{code}
   public BookResource getBookSubresource(long id) throws NoBookFoundException 
{}
{code}

(In other words, returning a BookResource instead of a Book)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to