-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
Having the java clases
public class Test1 {
public static String s1;
public static class Test2{
public static String s2;
public static class Test3{
public static String s3;
}
}
}
public class Main {
public static void main(final String[] args){
System.out.println(Test1.s1);
System.out.println(Test1.Test2.s2);
System.out.println(Test1.Test2.Test3.s3);
}
}
The equivalent Main.js is
Clazz.declarePackage("test");
Clazz.load(null, "test.Main", ["test.Test1"], function() {
c$ = Clazz.declareType(test, "Main");
c$.main = Clazz.defineMethod(c$, "main", function(args) {
System.out.println(test.Test1.s1);
System.out.println(test.Test1.Test1.Test2.s2);
System.out.println(test.Test1.Test1.Test2.Test3.s3);
}, "~A");
});
test.Test1.Test1.Test2.Test3.s3
should be
test.Test1.Test2.Test3.s3
Original issue reported on code.google.com by grigores...@gmail.com on 9 Sep 2011 at 8:52