PackageFragmentRoot root = (PackageFragmentRoot) roots[i];
IPath path = root.getPath();
try {
if (root.isArchive()) {
ZipFile zipFile = manager.getZipFile(path);
cpLocations[index++] = new ClasspathJar(zipFile, ((ClasspathEntry) root.getRawClasspathEntry()).getAccessRuleSet());
} else {
Object target = JavaModel.getTarget(path, true);
if (target == null) {
// target doesn't exist any longer
// just resize cpLocations