Clarify that @ and ... are tokens in the Java language

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7
    • Component/s: specification
    • None
    • Verified

      @ and ... are really tokens, but not defined as such in ch.3. What kind of token? They aren't using in expressions, so should not be identifiers, literals, or operators. They don't "feel" like keywords. The best option is to make them separators in 3.11 - @ introduces the start of an entity akin to { while ... terminates an entity akin to ;

      9.7.1 already notes that @ is a token and that whitespace after it is discouraged; 8.4.1 should follow by noting that ... is a token and that whitespace before it is discouraged.

            Assignee:
            Alex Buckley
            Reporter:
            Alex Buckley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: