Community
Participate
Working Groups
20050114 Look at the following code in the AST view (version 1.0.3) class A { String x= "a" + "b" + "c"; } In the ASTView view menu select to use the AST obtained by 'reconcile()': "a" + "b" + "c" is represented as a single StringLiteral of value 'abc'! When the AST is obtained the normal way (ASTParser), "a" + "b" + "c" is correctly modeled as InfixOperation
*** Bug 82464 has been marked as a duplicate of this bug. ***
Reconcile should specify that the string literals should not be optimized.
*** Bug 86899 has been marked as a duplicate of this bug. ***
Changed SourceElementParser constructor to take the 'optimizeStringLiterals' flag. Changed CompilationUnit#buildStructure(...) to pass in false if creating an AST. Added regresison test ASTConverterTest2#test0574()
Verified in I20050330-0500