[
https://issues.jboss.org/browse/JBIDE-19337?page=com.atlassian.jira.plugi...
]
Marián Labuda updated JBIDE-19337:
----------------------------------
Description:
In JBIDE-18823 we implemented to generate create() method body in relation to
(non)existing getId method in POJO class. If there is no such method, generated codes
looks like this:
{code}
//TODO: process the given pojo
//you may want to use the following return statement, assuming that Pojo#getId() or a
similar method
//would provide the identifier to retrieve the created Pojo resource:
//return
Response.created(UriBuilder.fromResource(PojoEndpoint.class).path(String.valueOf(pojo.getId())).build();
{code}
but the code in last inline comment should looks like this
{code}
Response.created(UriBuilder.fromResource(PojoEndpoint.class).path(String.valueOf(pojo.getId())).build()).build();
{code}
was:
In JBIDE-18823 we implemented to generate create() method body in relation to
(non)existing getId method in POJO class. If there is no such method, generated codes
looks like this:
{code}
//TODO: process the given pojo
//you may want to use the following return statement, assuming that Pojo#getId() or a
similar method
//would provide the identifier to retrieve the created Pojo resource:
//return
Response.created(UriBuilder.fromResource(Pojo2Endpoint.class).path(String.valueOf(pojo2.getId())).build();
{code}
but the code in last inline comment should looks like this
{code}
Response.created(UriBuilder.fromResource(Pojo2Endpoint.class).path(String.valueOf(pojo2.getId())).build()).build();
{code}
Generated JAX-RS endpoint hint in create method inline comment
contains invalid code template
---------------------------------------------------------------------------------------------
Key: JBIDE-19337
URL:
https://issues.jboss.org/browse/JBIDE-19337
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: webservices
Affects Versions: 4.3.0.Alpha1
Reporter: Marián Labuda
Priority: Minor
Labels: jax-rs
In JBIDE-18823 we implemented to generate create() method body in relation to
(non)existing getId method in POJO class. If there is no such method, generated codes
looks like this:
{code}
//TODO: process the given pojo
//you may want to use the following return statement, assuming that Pojo#getId() or a
similar method
//would provide the identifier to retrieve the created Pojo resource:
//return
Response.created(UriBuilder.fromResource(PojoEndpoint.class).path(String.valueOf(pojo.getId())).build();
{code}
but the code in last inline comment should looks like this
{code}
Response.created(UriBuilder.fromResource(PojoEndpoint.class).path(String.valueOf(pojo.getId())).build()).build();
{code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)