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.1 - 13 Feb 2003 - 00:48 - MikeVanEmmerik
Transform > 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