src/share/classes/com/sun/tools/javac/parser/JavacParser.java

changeset 1583
186023614cd3
parent 1563
bc456436c613
child 1680
3f3cc8d3f13c
equal deleted inserted replaced
1582:3cd997b9fd84 1583:186023614cd3
2865 2865
2866 /** AnnotationFieldValue = AnnotationValue 2866 /** AnnotationFieldValue = AnnotationValue
2867 * | Identifier "=" AnnotationValue 2867 * | Identifier "=" AnnotationValue
2868 */ 2868 */
2869 JCExpression annotationFieldValue() { 2869 JCExpression annotationFieldValue() {
2870 if (token.kind == IDENTIFIER) { 2870 if (LAX_IDENTIFIER.accepts(token.kind)) {
2871 mode = EXPR; 2871 mode = EXPR;
2872 JCExpression t1 = term1(); 2872 JCExpression t1 = term1();
2873 if (t1.hasTag(IDENT) && token.kind == EQ) { 2873 if (t1.hasTag(IDENT) && token.kind == EQ) {
2874 int pos = token.pos; 2874 int pos = token.pos;
2875 accept(EQ); 2875 accept(EQ);

mercurial