Issue #269467 - Editor does not show error with code that does not compile - fixed.
1.1 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java Fri Sep 22 13:10:06 2017 +0200
1.2 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java Fri Sep 22 16:50:49 2017 +0200
1.3 @@ -463,10 +463,14 @@
1.4
1.5 boolean elidedValue = false;
1.6 // special case: elided "value=" assumed
1.7 - if (args.length() == 1 && !args.head.hasTag(ASSIGN)) {
1.8 - args.head = make.at(Position.NOPOS).
1.9 - Assign(make.Ident(names.value), args.head);
1.10 - elidedValue = true;
1.11 + if (args.length() == 1) {
1.12 + if (!args.head.hasTag(ASSIGN)) {
1.13 + args.head = make.at(Position.NOPOS).
1.14 + Assign(make.Ident(names.value), args.head);
1.15 + elidedValue = true;
1.16 + } else if (args.head.pos == Position.NOPOS) {
1.17 + elidedValue = true;
1.18 + }
1.19 }
1.20
1.21 ListBuffer<Pair<MethodSymbol,Attribute>> buf = new ListBuffer<>();