Skip to content

Commit 2b66b6d

Browse files
author
jossonsmith
committed
ClazzLoader#updateNode should be asynchronous.
1 parent 50bb5aa commit 2b66b6d

File tree

1 file changed

+10
-1
lines changed
  • sources/net.sf.j2s.java.core/src/java/lang

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,16 @@ Clazz.decorateFunction = function (clazzFun, prefix, name) {
16361636
/*-#
16371637
# updateNode -> uN
16381638
#-*/
1639-
ClazzLoader.updateNode (node);
1639+
window.setTimeout((function(nnn) {
1640+
return function() {
1641+
ClazzLoader.updateNode (nnn);
1642+
};
1643+
})(node), 1);
1644+
/*
1645+
* #updateNode should be delayed! Or the class itself won't
1646+
* be initialized completely before marking itself as loaded.
1647+
*/
1648+
// ClazzLoader.updateNode (node);
16401649
}
16411650
}
16421651
};

0 commit comments

Comments
 (0)