test/tools/javac/annotations/typeAnnotations/newlocations/Receivers.java

changeset 2424
7e97c65c373c
parent 1521
71f35e4b93a5
child 2525
2eb010b6cb22
equal deleted inserted replaced
2422:4ee06c77b51b 2424:7e97c65c373c
50 void plain(@B("m") WithValue this) { } 50 void plain(@B("m") WithValue this) { }
51 <T> void generic(@B("m") WithValue this) { } 51 <T> void generic(@B("m") WithValue this) { }
52 void withException(@B("m") WithValue this) throws Exception { } 52 void withException(@B("m") WithValue this) throws Exception { }
53 String nonVoid(@B("m") WithValue this) { return null; } 53 String nonVoid(@B("m") WithValue this) { return null; }
54 <T extends Runnable> void accept(@B("m") WithValue this, T r) throws Exception { } 54 <T extends Runnable> void accept(@B("m") WithValue this, T r) throws Exception { }
55 }
56
57 class WithFinal {
58 void plain(final @B("m") WithFinal this) { }
59 <T> void generic(final @B("m") WithFinal this) { }
60 void withException(final @B("m") WithFinal this) throws Exception { }
61 String nonVoid(final @B("m") WithFinal this) { return null; }
62 <T extends Runnable> void accept(final @B("m") WithFinal this, T r) throws Exception { }
63 } 55 }
64 56
65 class WithBody { 57 class WithBody {
66 Object f; 58 Object f;
67 59

mercurial