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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/core/compiler/CharOperation.java (-5 / +12 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
2
 * Copyright (c) 2000, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 2514-2523 Link Here
2514
2514
2515
	/* check first segment */
2515
	/* check first segment */
2516
	char patternChar = 0;
2516
	char patternChar = 0;
2517
	while ((iPattern < patternEnd)
2517
	while (true) {
2518
		&& (patternChar = pattern[iPattern]) != '*') {
2518
		if (iPattern == patternEnd) {
2519
		if (iName == nameEnd)
2519
			if (iName == nameEnd) return true; // the chars match
2520
			return false;
2520
			return false; // pattern has ended but not the name, no match
2521
		} 
2522
		if ((patternChar = pattern[iPattern]) == '*') {
2523
			break;
2524
		}
2525
		if (iName == nameEnd) {
2526
			return false; // name has ended but not the pattern
2527
		}
2521
		if (patternChar
2528
		if (patternChar
2522
			!= (isCaseSensitive
2529
			!= (isCaseSensitive
2523
				? name[iName]
2530
				? name[iName]

Return to bug 324189