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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7
    • 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.

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

              Created:
              Updated:
              Resolved: