Inconsistent source code model

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 11
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: