JDK-7068902 : (javac) allow enabling or disabling of String folding
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-07-20
  • 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
NetBeans IDE wants to disable string folding in javac. String folding
is: String foo = "F" + "O" + "O";
the javacparser will represent the above as a single tree, this helps
in the getting more accurate AST and for error reporting.

Comments
EVALUATION Yes this is reasonable request.
20-07-2011