fix SSL stack and Android JAR resource loading

This commit is contained in:
Joel Dice
2014-08-22 07:05:58 -06:00
parent b96cc3c575
commit 7f4c0b3118
6 changed files with 45 additions and 5 deletions

View File

@ -529,7 +529,9 @@ public final class Class <T>
}
public URL getResource(String path) {
if (! path.startsWith("/")) {
if (path.startsWith("/")) {
path = path.substring(1);
} else {
String name = Classes.makeString
(vmClass.name, 0, vmClass.name.length - 1);
int index = name.lastIndexOf('/');