Skip to content

Commit 0a6b523

Browse files
author
zhourenjian
committed
Now ClassLoader.packageClasspath ("org.eclipse.jface", "../j2slib/") will have classpaht of all sub-packages, like "org.eclipse.jface.###.*", point to "../j2slib/".
1 parent a8e944a commit 0a6b523

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sources/net.sf.j2s.java.core/src/java/lang/ClassLoader.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ ClazzLoader.getClasspathFor = function (clazz, forRoot, ext) {
613613
}
614614
*/
615615
var idx = clazz.lastIndexOf (".");
616-
/*
616+
//*
617617
while (idx != -1) {
618618
var pkg = clazz.substring (0, idx);
619619
base = ClazzLoader.classpathMap["@" + pkg];
@@ -622,11 +622,13 @@ ClazzLoader.getClasspathFor = function (clazz, forRoot, ext) {
622622
}
623623
idx = clazz.lastIndexOf (".", idx - 2);
624624
}
625-
*/
625+
//*/
626+
/*
626627
if (idx != -1) {
627628
var pkg = clazz.substring (0, idx);
628629
base = ClazzLoader.classpathMap["@" + pkg];
629630
}
631+
//*/
630632
}
631633

632634
base = ClazzLoader.assureBase (base);

0 commit comments

Comments
 (0)