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

Collapse All | Expand All

(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java (-2 / +3 lines)
Lines 564-572 Link Here
564
		while (size <= nullCount) size *= 2;
564
		while (size <= nullCount) size *= 2;
565
		this.expectedTypes = new TypeBinding[size];
565
		this.expectedTypes = new TypeBinding[size];
566
	}
566
	}
567
	else if (nullCount == this.expectedTypes.length) {
567
	else if (nullCount >= this.expectedTypes.length) {
568
		int oldLen = this.expectedTypes.length;
568
		System.arraycopy(this.expectedTypes, 0,
569
		System.arraycopy(this.expectedTypes, 0,
569
			this.expectedTypes = new TypeBinding[nullCount * 2], 0, nullCount);
570
			this.expectedTypes = new TypeBinding[nullCount * 2], 0, oldLen);
570
	}
571
	}
571
	this.expectedTypes[nullCount] = expectedType;
572
	this.expectedTypes[nullCount] = expectedType;
572
}
573
}

Return to bug 365387