JDK-7060926 : Attr.PostAttrAnalyzer misses a case
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-06-30
  • Updated: 2012-02-24
  • Resolved: 2012-02-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u2Fixed 8 b01Fixed
Description
Attr.PostAttrAnalyzer is supposed to detect and fill in null values in a partially attributed tree resulting from Attr errors.   It misses the operator field in a JCAssignop tree.

Comments
EVALUATION Ooops. Does not affect batch mode javac, but can affect downstream clients (such as NetBeans) that set the compilePolicy beyond the default value.
30-06-2011

SUGGESTED FIX Add the following method to PostAttrAnalyzer @Override public void visitAssignop(JCAssignOp that) { if (that.operator == null) that.operator = new OperatorSymbol(names.empty, syms.unknownType, -1, syms.noSymbol); super.visitAssignop(that); }
30-06-2011