This class is also from the book Decompiling Java, this time chapter 3:
public class Usa {
    public String name = "Detroit";
    public class England {
        public String name = "London";
        public class Ireland {
            public String name = "Dublin";
            public void print_names() {
                System.out.println(name);
            }
        }
    }
}

Here, England is an inner class of Usa, and Ireland is an inner class of England. The above is compiled with Sun's javac for Solaris (no options).

-- MikeVanEmmerik - 13 Feb 2003

Revision: r1.2 - 13 Feb 2003 - 22:17 - MikeVanEmmerik
Transform > WebStatistics > DecompilationApplicationSpecificApproach > DecompilerInnerClassesTestSource
Copyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback