Community
Participate
Working Groups
N20070621-0010 Given: package test; public class E01 { public String foo() { return((true ? "" : ("" + "") + "")); } } 1. Look at conditional expression with ASTView Is: CondititionalExpression -+BooleanLiteral +StringLiteral +ParameterizedExpression -+InfixExpression Should: CondititionalExpression -+BooleanLiteral +StringLiteral +InfixExpression -+ParameterizedExpression +StringLiteral
Hint that I've found that kind of code in the class TokenMgrError which is generated by JavaCC and used a couple of times in the SDK.
Philippe, This would be a candidate for 3.3.1. I am testing a fix for it.
Created attachment 72206 [details] Proposed fix + regression test
Released for 3.4M1. Added regression test in org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2#test0678 Philippe, let me know if you want it for 3.3.1.
Verified for 3.4M1 using build I20070806-1800.