Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Now that master is on JDK 8, we should look at supporting annotations in more places (i.e. JSR 308 or some subset thereof).
It will require some plugin tweaking for configuring annotation nodes and also some grammar changes. For the backport in
particular, we'll need to decide whether we don't backport the relevant grammar changes or allow them in the grammar
but gracefully handle them with appropriate error messages. My initial gut feel is we should allow them in the grammar but
we can make that call after further investigation.
Some other decisions that might arise.
- Do we support just a subset of the JSR?
- Currently we allow the type placeholder 'def' to be elided if an annotation takes its place. Does this convention need to change with the additional annotation positions or do we need to clarify what happens in different scenarios?
Attachments
Issue Links
- is depended upon by
-
GROOVY-9632 Java 8 Type Param Annotation Not Generated in Byte Code
- Closed
- relates to
-
GROOVY-11178 JSR308 constructor call annotations not resolved or available
- Closed
1.
|
JSR308 initial plumbing tweaks | Closed | Paul King | |
2.
|
JSR308 grammar changes | Closed | Daniel Sun | |
3.
|
JSR308 avoid compiler errors for legacy versions | Closed | Paul King |