File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
sources/net.sf.j2s.java.core/src/java/lang Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1283,7 +1283,7 @@ ClazzLoader.tryToLoadNext = function (file) {
1283
1283
* Here when loading entry class, ClassLoader should not call
1284
1284
* the next following loading script. This is because, those
1285
1285
* scripts will try to mark the class as loaded directly and
1286
- * then continue to call #optionalLoaded callback method,
1286
+ * then continue to call #optionalsLoaded callback method,
1287
1287
* which results in an script error!
1288
1288
*/
1289
1289
ClazzLoader . isLoadingEntryClass = false ;
@@ -1352,6 +1352,12 @@ ClazzLoader.tryToLoadNext = function (file) {
1352
1352
for ( var i = 0 ; i < dList . length ; i ++ ) {
1353
1353
ClazzLoader . updateNode ( dList [ i ] ) ;
1354
1354
}
1355
+ for ( var i = 0 ; i < dList . length ; i ++ ) {
1356
+ if ( dList [ i ] . optionalsLoaded != null ) {
1357
+ dList [ i ] . optionalsLoaded ( ) ;
1358
+ dList [ i ] . optionalsLoaded = null ;
1359
+ }
1360
+ }
1355
1361
1356
1362
/*
1357
1363
* It seems ClazzLoader#globalLoaded is seldom overrided.
You can’t perform that action at this time.
0 commit comments