### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.model Index: src/org/eclipse/jdt/core/tests/model/ClasspathTests.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathTests.java,v retrieving revision 1.195 diff -u -r1.195 ClasspathTests.java --- src/org/eclipse/jdt/core/tests/model/ClasspathTests.java 15 Dec 2008 12:30:20 -0000 1.195 +++ src/org/eclipse/jdt/core/tests/model/ClasspathTests.java 14 Jan 2009 09:39:36 -0000 @@ -3689,6 +3689,42 @@ } } /* + * Ensures that nested libraries in the Class-Path: clause of a jar doesn't create a marker. + * (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=259685 ) + */ +public void testExtraLibraries17() throws Exception { + try { + IJavaProject p = createJavaProject("P"); + addExternalLibrary(p, getExternalResourcePath("lib.jar"), new String[0], + new String[] { + "META-INF/MANIFEST.MF", + "Manifest-Version: 1.0\n" + + "Class-Path: lib/ \n", + }, + JavaCore.VERSION_1_4); + waitForAutoBuild(); + + org.eclipse.jdt.core.tests.util.Util.createJar( + null/*no classes*/, + new String[] { + "META-INF/MANIFEST.MF", + "Manifest-Version: 1.0\n" + + "Class-Path: lib/ lib/sublib/ \n", + }, + getExternalResourcePath("lib.jar"), + null/*no classpath*/, + JavaCore.VERSION_1_4); + refreshExternalArchives(p); + assertMarkers( + "Unexpected markers", + "", + p); + } finally { + deleteProject("P"); + deleteExternalResource("lib.jar"); + } +} +/* * Ensures that a marker is removed if adding an internal jar that is on the classpath in another project * (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=213723 ) */