Annotations syntax error in JLS 9.7

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: