Skip to content

Commit eadad18

Browse files
author
jossonsmith
committed
Take another loading try to make sure *.css are not missed.
1 parent 3e96449 commit eadad18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,21 +1284,24 @@ ClazzLoader.updateNode = function (node) {
12841284
var isOptionsOK = false;
12851285
if (((node.optionals == null || node.optionals.length == 0)
12861286
&& (node.musts == null || node.musts.length == 0))
1287-
|| node.declaration == null) {
1287+
|| (node.status > ClazzNode.STATUS_KNOWN
1288+
&& node.declaration == null)) {
12881289
isOptionsOK = true;
12891290
} else {
12901291
isOptionsOK = true;
12911292
for (var i = 0; i < node.musts.length; i++) {
12921293
var n = node.musts[i];
12931294
if (n.status < ClazzNode.STATUS_OPTIONALS_LOADED) {
12941295
isOptionsOK = false;
1296+
break;
12951297
}
12961298
}
12971299
if (isOptionsOK) {
12981300
for (var i = 0; i < node.optionals.length; i++) {
12991301
var n = node.optionals[i];
13001302
if (n.status < ClazzNode.STATUS_OPTIONALS_LOADED) {
13011303
isOptionsOK = false;
1304+
break;
13021305
}
13031306
}
13041307
}

0 commit comments

Comments
 (0)