Skip to content

Commit d91b03c

Browse files
author
zhourenjian
committed
Fixed a bug that ClassLoader will freeze IE sometimes.
1 parent aad325a commit d91b03c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#Java2Script Release
22
#Sun Mar 04 22:38:19 CST 2007
33
alias=1.0.0-m5
4-
version=20070304
4+
version=20070315

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,11 +1324,17 @@ ClazzLoader.tryToLoadNext = function (file) {
13241324
}
13251325
while (ClazzLoader.checkOptionalCycle (ClazzLoader.clazzTreeRoot)) {
13261326
}
1327+
lastNode = null;
13271328
while ((n = ClazzLoader.findNextMustClass (ClazzLoader.clazzTreeRoot, ClazzNode.STATUS_DECLARED)) != null) {
1329+
if (lastNode == n) break;
13281330
ClazzLoader.updateNode (n);
1331+
lastNode = n;
13291332
}
1333+
lastNode = null;
13301334
while ((n = ClazzLoader.findNextOptionalClass (ClazzNode.STATUS_DECLARED)) != null) {
1335+
if (lastNode == n) break;
13311336
ClazzLoader.updateNode (n);
1337+
lastNode = n;
13321338
}
13331339

13341340
/*

0 commit comments

Comments
 (0)