Skip to content

Commit f881dbf

Browse files
committed
j2sClazz fix for newer Clazz._initClass()
1 parent 1705455 commit f881dbf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sClazz.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ Clazz.load = function(cName, from$clinit$) {
424424
}
425425
// allow for a clazz itself
426426
if (cName.__CLASS_NAME__)
427-
return Clazz._initClass(cName);
427+
return Clazz._initClass(cName,1,1,0);
428428
// standard load of class by name
429429
if (cName.indexOf("Thread.") == 0)
430430
Clazz._4Name("java.lang.Thread", null, null, true)
@@ -479,6 +479,12 @@ Clazz.new_ = function(c, args, cl) {
479479
return obj;
480480
}
481481

482+
//var C$=Clazz.newClass(P$,
483+
// "Test_Local$1",
484+
// function(){Clazz.newInstance(this, arguments[0],1,C$);},
485+
// Clazz.load('test.Test_Local$1ReducingSink'), null, 1);
486+
//
487+
482488
Clazz.newClass = function (prefix, name, clazz, clazzSuper, interfacez, type) {
483489
// if (J2S._debugCore) {
484490
// var qualifiedName = (prefix ? (prefix.__PKG_NAME__ || prefix.__CLASS_NAME__) + "." : "") + name;

0 commit comments

Comments
 (0)