Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.7.1
-
Component/s: Stub generator / Joint compiler
-
Labels:None
-
Number of attachments :
Description
We made some progress on the original issue GROOVY-4118 and so we closed it for the 1.7.3 release. This issue captures remaining work, primarily some additional test cases.
Looking at org.codehaus.groovy.tools.javac.JavaStubGenerator (http://goo.gl/ob23) I see it doesn't generate annotations that are originally available in Groovy sources.
I think it causes those issues later:
- http://jira.codehaus.org/browse/GMAVEN-68 - "GMaven: generateStubs generates stubs without original Javadocs or annotations"
- http://jira.codehaus.org/browse/GMAVEN-4 - "GMaven: Stub generation should generate annotations"
I'm trying to use AnnoMojo annotations (http://goo.gl/rbRw) when developing my MOJOs in Groovy.
GMaven's "generateStubs" goal doesn't produce Java sources with original AnnoMojo annotations
What is the status of parameter annotations? This has implications for some of the JAX-RS tooling which I work with daily.
A simple example for clarity's sake:
@Path("/myURL/{pathVariable}") public Response getView(@PathParam("pathVariable") String pathVariable) { // ... }Here the @Path annotation makes it to the stub just fine, but not the @PathParam.