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

Inconsistent source code model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • tools
    • None
    • b20

        Consider code like:
        ---
        class T {
             void t() {
                   for (n : ns) { }
             }
        }
        ---

        The AST node for "n" will be a VariableTree, but its modifiers and name will be null. This seems to be inconsistent with other similar cases like:
        void t(n) { }
        which is modelled as a VariableTree with non-null dummy modifiers and names.error as the name.

              jlahoda Jan Lahoda
              jlahoda Jan Lahoda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: