Skip to content

Nested static inner class problem #1

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions