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

Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/ClasspathEntry.java (-1 / +1 lines)
Lines 2143-2149 Link Here
2143
		} catch (CoreException e) {
2143
		} catch (CoreException e) {
2144
			if (e.getStatus().getMessage() == Messages.status_IOException) {
2144
			if (e.getStatus().getMessage() == Messages.status_IOException) {
2145
				return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(
2145
				return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(
2146
						Messages.classpath_illegalLibraryArchive,
2146
						Messages.classpath_archiveReadError,
2147
						new String[] {entryPathMsg, project.getElementName()}));
2147
						new String[] {entryPathMsg, project.getElementName()}));
2148
			}
2148
			}
2149
		}
2149
		}
(-)model/org/eclipse/jdt/internal/core/util/Messages.java (+1 lines)
Lines 151-156 Link Here
151
	public static String classpath_illegalLibraryPath;
151
	public static String classpath_illegalLibraryPath;
152
	public static String classpath_illegalLibraryPathInContainer;
152
	public static String classpath_illegalLibraryPathInContainer;
153
	public static String classpath_illegalLibraryArchive;
153
	public static String classpath_illegalLibraryArchive;
154
	public static String classpath_archiveReadError;
154
	public static String classpath_illegalExternalFolder;
155
	public static String classpath_illegalExternalFolder;
155
	public static String classpath_illegalExternalFolderInContainer;
156
	public static String classpath_illegalExternalFolderInContainer;
156
	public static String classpath_illegalProjectPath;
157
	public static String classpath_illegalProjectPath;
(-)model/org/eclipse/jdt/internal/core/util/messages.properties (+1 lines)
Lines 147-152 Link Here
147
classpath_illegalLibraryPath = Illegal path for required library: ''{0}'' in project ''{1}''
147
classpath_illegalLibraryPath = Illegal path for required library: ''{0}'' in project ''{1}''
148
classpath_illegalLibraryPathInContainer = Illegal path for required library: ''{0}'' in the {1}
148
classpath_illegalLibraryPathInContainer = Illegal path for required library: ''{0}'' in the {1}
149
classpath_illegalLibraryArchive = Illegal type of archive for required library: ''{0}'' in project ''{1}''
149
classpath_illegalLibraryArchive = Illegal type of archive for required library: ''{0}'' in project ''{1}''
150
classpath_archiveReadError = Archive for required library: ''{0}'' in project ''{1}'' cannot be read or is not a valid ZIP file
150
classpath_illegalExternalFolder = Required library cannot denote external folder: ''{0}'' for project ''{1}''
151
classpath_illegalExternalFolder = Required library cannot denote external folder: ''{0}'' for project ''{1}''
151
classpath_illegalExternalFolderInContainer = Required library cannot denote external folder: ''{0}'' in the {1}
152
classpath_illegalExternalFolderInContainer = Required library cannot denote external folder: ''{0}'' in the {1}
152
classpath_illegalProjectPath = Illegal path for required project: ''{0}'' in project ''{1}''
153
classpath_illegalProjectPath = Illegal path for required project: ''{0}'' in project ''{1}''
(-)src/org/eclipse/jdt/core/tests/model/ClasspathTests.java (-1 / +1 lines)
Lines 6882-6888 Link Here
6882
		createFile("/P/library.jar", "");
6882
		createFile("/P/library.jar", "");
6883
		setClasspath(p, new IClasspathEntry[] { JavaCore.newLibraryEntry(new Path("/P/library.jar"), null,null)});
6883
		setClasspath(p, new IClasspathEntry[] { JavaCore.newLibraryEntry(new Path("/P/library.jar"), null,null)});
6884
		assertMarkers("Expected marker", 
6884
		assertMarkers("Expected marker", 
6885
				"Illegal type of archive for required library: \'library.jar\' in project \'P\'", p);
6885
				"Archive for required library: \'library.jar\' in project \'P\' cannot be read or is not a valid ZIP file", p);
6886
		setClasspath(p, new IClasspathEntry[0]);
6886
		setClasspath(p, new IClasspathEntry[0]);
6887
		addLibrary(p, "library.jar", null, new String[0], 
6887
		addLibrary(p, "library.jar", null, new String[0], 
6888
				new String[] {
6888
				new String[] {

Return to bug 229042