Decompiler Inner Classes Test Source
Program-Transformation.Org: The Program Transformation Wiki
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