# HG changeset patch # User Dusan Balek # Date 1506091849 -7200 # Node ID 9cc61f487a6de673d0e36dc4d3b6524ffbaee510 # Parent 0911c6d1f67170a7b2e602f382a792fd8eebe30d Issue #269467 - Editor does not show error with code that does not compile - fixed. diff -r 0911c6d1f671 -r 9cc61f487a6d src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java Fri Sep 22 13:10:06 2017 +0200 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java Fri Sep 22 16:50:49 2017 +0200 @@ -463,10 +463,14 @@ boolean elidedValue = false; // special case: elided "value=" assumed - if (args.length() == 1 && !args.head.hasTag(ASSIGN)) { - args.head = make.at(Position.NOPOS). - Assign(make.Ident(names.value), args.head); - elidedValue = true; + if (args.length() == 1) { + if (!args.head.hasTag(ASSIGN)) { + args.head = make.at(Position.NOPOS). + Assign(make.Ident(names.value), args.head); + elidedValue = true; + } else if (args.head.pos == Position.NOPOS) { + elidedValue = true; + } } ListBuffer> buf = new ListBuffer<>();