hg: jdk9/dev/langtools: 8054956: Javac reports wrong error offset for unknown identifier of annotation element/value pair
jan.lahoda at oracle.com
jan.lahoda at oracle.com
Mon Oct 13 15:23:06 UTC 2014
Changeset: b5d44ecef54d
Author: jlahoda
Date: 2014-10-13 17:22 +0200
URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/b5d44ecef54d
8054956: Javac reports wrong error offset for unknown identifier of annotation element/value pair
Summary: When reporting an error about unresolvable annotation attribute, use the position of the explicit left-hand-side of the assignment if available, otherwise use the position of the right-hand-side.
Reviewed-by: jfranck
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java
! test/tools/javac/annotations/neg/Recovery1.out
! test/tools/javac/positions/TreeEndPosTest.java
More information about the jdk9-dev-changes
mailing list