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 | |
dmd@188 | 2 | class AnnotationTest { |
dmd@188 | 3 | @Annotation(a=1, b="foo") |
dmd@188 | 4 | public static void hello() { |
dmd@188 | 5 | } |
dmd@188 | 6 | @AnnotationMarker |
dmd@188 | 7 | private static int getx() { |
dmd@188 | 8 | return 1; |
dmd@188 | 9 | } |
dmd@188 | 10 | private static int addup(@Annotation(b="param") int x, |
dmd@188 | 11 | int y) { |
dmd@188 | 12 | return x+y; |
dmd@188 | 13 | } |
dmd@188 | 14 | } |