X Tutup
Skip to content

Commit b6e3a8d

Browse files
author
zhourenjian
committed
Fixed bug that ClassLoader may call classLoaded callback before it is loaded
1 parent c3aef12 commit b6e3a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ ClazzLoader.loadClass = function (name, optionalsLoaded, forced, async) {
23522352
if (!inserted) {
23532353
qq[0] = n;
23542354
}
2355-
} else {
2355+
} else if (needBeingQueued) {
23562356
qq[qq.length] = n;
23572357
}
23582358
if (!needBeingQueued) { // can be loaded directly

0 commit comments

Comments
 (0)
X Tutup