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

Annotations syntax error in JLS 9.7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • specification
    • None
    • rc
    • generic
    • generic
    • Verified

      ElementValue in JLS 9.7/18.1 allows ConditionalExpression or Annotation or ElementValueArrayInitializer. The use of ConditionalExpression is confusing because the text on page 283 limits primitive/String-typed element values to being constant expressions. Could the ElementValue grammar use ConstantExpression?

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: