2011-09-18 | David Drysdale | file changeset files shortlog | Add support for Java 1.5 + 1.6 class files. Also add more tests cases, fix some bugs, and check that serialization of loaded class files returns the same as the input. |
dmd@188 | 1 | public class EnclosingMethodTest { |
dmd@188 | 2 | public int outer(int a) { |
dmd@188 | 3 | class InnerClass { |
dmd@188 | 4 | public int inner(int b) { |
dmd@188 | 5 | return b+1; |
dmd@188 | 6 | } |
dmd@188 | 7 | } |
dmd@188 | 8 | InnerClass inc = new InnerClass(); |
dmd@188 | 9 | return inc.inner(a); |
dmd@188 | 10 | } |
dmd@188 | 11 | } |
dmd@188 | 12 |