Unresolved layouts present some ambiguities when it comes to layout annotations: they use the predefined 'name' annotation to indicate the layout they point to - but that means that an unresolved layout cannot be given a name - which makes them incompatible with schemes such as the one described here:
http://cr.openjdk.java.net/~mcimadamore/panama/panama-annos.html
The solution is to model the layout expression of an unresolved layout in a more direct way:
unresolved = '$' '(' layoutExpr ')' annosOpt
Or, even more clearly, using a different set of braces for the layoutExpr:
unresolved = '$' '{' layoutExpr '}' annosOpt
http://cr.openjdk.java.net/~mcimadamore/panama/panama-annos.html
The solution is to model the layout expression of an unresolved layout in a more direct way:
unresolved = '$' '(' layoutExpr ')' annosOpt
Or, even more clearly, using a different set of braces for the layoutExpr:
unresolved = '$' '{' layoutExpr '}' annosOpt
- duplicates
-
JDK-8217453 add support for member annotation scheme
-
- Resolved
-