|
|
|
@ -257,10 +257,10 @@ final class JarURLConnection extends java.net.JarURLConnection {
|
|
|
|
|
int index = indexOfRootSpec(spec, jarFile.getPathFromRoot());
|
|
|
|
|
int separator;
|
|
|
|
|
while ((separator = spec.indexOf(SEPARATOR, index)) > 0) {
|
|
|
|
|
StringSequence entryName = spec.subSequence(index, separator);
|
|
|
|
|
JarEntry jarEntry = jarFile.getJarEntry(entryName);
|
|
|
|
|
JarEntryName entryName = JarEntryName.get(spec.subSequence(index, separator));
|
|
|
|
|
JarEntry jarEntry = jarFile.getJarEntry(entryName.toCharSequence());
|
|
|
|
|
if (jarEntry == null) {
|
|
|
|
|
return JarURLConnection.notFound(jarFile, JarEntryName.get(entryName));
|
|
|
|
|
return JarURLConnection.notFound(jarFile, entryName);
|
|
|
|
|
}
|
|
|
|
|
jarFile = jarFile.getNestedJarFile(jarEntry);
|
|
|
|
|
index = separator + SEPARATOR.length();
|
|
|
|
@ -360,6 +360,10 @@ final class JarURLConnection extends java.net.JarURLConnection {
|
|
|
|
|
return ((char) ((hi << 4) + lo));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public CharSequence toCharSequence() {
|
|
|
|
|
return this.name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return this.name.toString();
|
|
|
|
|