View | Details | Raw Unified | Return to bug 100162 | Differences between
and this patch

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java (+1 lines)
Lines 281-286 Link Here
281
		LookupEnvironment env = scope.environment();
281
		LookupEnvironment env = scope.environment();
282
		boolean use15specifics = scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5;
282
		boolean use15specifics = scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5;
283
		TypeBinding conditionType = condition.resolveTypeExpecting(scope, BooleanBinding);
283
		TypeBinding conditionType = condition.resolveTypeExpecting(scope, BooleanBinding);
284
		if (conditionType != null) condition.computeConversion(scope, BooleanBinding, conditionType);
284
		
285
		
285
		if (valueIfTrue instanceof CastExpression) valueIfTrue.bits |= IgnoreNeedForCastCheckMASK; // will check later on
286
		if (valueIfTrue instanceof CastExpression) valueIfTrue.bits |= IgnoreNeedForCastCheckMASK; // will check later on
286
		TypeBinding originalValueIfTrueType = valueIfTrue.resolveType(scope);
287
		TypeBinding originalValueIfTrueType = valueIfTrue.resolveType(scope);

Return to bug 100162