### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java,v retrieving revision 1.133 diff -u -r1.133 Expression.java --- compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java 17 Jan 2011 08:05:01 -0000 1.133 +++ compiler/org/eclipse/jdt/internal/compiler/ast/Expression.java 14 Mar 2011 14:57:57 -0000 @@ -986,6 +986,11 @@ referenceContext.compilationResult().getFileName())) { // problem is rooted elsewhere return true; } + } else if (this instanceof ConditionalExpression) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=337751 + ConditionalExpression ternary = (ConditionalExpression) this; + if (ternary.valueIfTrue.forcedToBeRaw(referenceContext) || ternary.valueIfFalse.forcedToBeRaw(referenceContext)) { + return true; + } } return false; }