Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8214359

Update API/syntax for unresolved layouts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • repo-panama
    • tools

      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

            Unassigned Unassigned
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: