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

Collapse All | Expand All

(-)batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java (+7 lines)
Lines 115-120 Link Here
115
	if (binaryExists) {
115
	if (binaryExists) {
116
		try {
116
		try {
117
			ClassFileReader reader = ClassFileReader.read(this.path + qualifiedBinaryFileName);
117
			ClassFileReader reader = ClassFileReader.read(this.path + qualifiedBinaryFileName);
118
			// https://bugs.eclipse.org/bugs/show_bug.cgi?id=321115, package names are to be treated case sensitive.
119
			String typeSearched = qualifiedPackageName.length() > 0 ? 
120
					qualifiedPackageName.replace(File.separatorChar, '/') + "/" + fileName //$NON-NLS-1$
121
					: fileName;
122
			if (!CharOperation.equals(reader.getName(), typeSearched.toCharArray())) {
123
				reader = null;
124
			}
118
			if (reader != null)
125
			if (reader != null)
119
				return new NameEnvironmentAnswer(
126
				return new NameEnvironmentAnswer(
120
						reader,
127
						reader,
(-)src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java (+1 lines)
Lines 3109-3114 Link Here
3109
		this.runConformTest(
3109
		this.runConformTest(
3110
			new String[] {
3110
			new String[] {
3111
				"p/Y.java",
3111
				"p/Y.java",
3112
				"package p;\n" +
3112
				"public class Y { public static final String S = \"\"; }",
3113
				"public class Y { public static final String S = \"\"; }",
3113
			},
3114
			},
3114
	        "\"" + OUTPUT_DIR +  File.separator + "p" + File.separator + "Y.java\""
3115
	        "\"" + OUTPUT_DIR +  File.separator + "p" + File.separator + "Y.java\""

Return to bug 321115