| Summary: | [1.8][compiler][null] support null annotations on a type declaration | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Stephan Herrmann <stephan.herrmann> |
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | shankhba |
| Version: | 4.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
See also bug 424727 (where I implemented resetting of null annotation tag bits on type declarations for now). Not for BETA_J8, maybe 4.4 not a priority, currently |
Saying @NonNull class X { } can be interpreted as a short-hand to the effect that every occurrence of 'X' actually means '@NonNull X'. (This is explicitly mentioned in the JSR 308 spec, see also bug 392238 comment 10). Currently, ecj (BETA_JAVA8) rejects this declaration. Depending on demand why may want to add this feature some time.