Sat, 07 Nov 2020 10:30:02 +0800
Added tag mips-jdk8u275-b01 for changeset eb6ee6a5f2fe
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 6245591 |
aoqi@0 | 4 | * @compile/ref=T6245591.out -XDrawDiagnostics -Xlint:all,-path T6245591.java |
aoqi@0 | 5 | */ |
aoqi@0 | 6 | enum Season { |
aoqi@0 | 7 | /** @deprecated */ |
aoqi@0 | 8 | WINTER, SPRING, SUMMER, FALL; |
aoqi@0 | 9 | } |
aoqi@0 | 10 | enum Season1 { |
aoqi@0 | 11 | WINTER, SPRING, SUMMER, FALL; |
aoqi@0 | 12 | } |
aoqi@0 | 13 | class T6245591 { |
aoqi@0 | 14 | void m() { |
aoqi@0 | 15 | Season s1 = Season.WINTER; // ref to WINTER should be deprecated |
aoqi@0 | 16 | Season1 s2 = Season1.WINTER; // nothing here should be deprecated; |
aoqi@0 | 17 | // @deprecated should not leak out of Season |
aoqi@0 | 18 | } |
aoqi@0 | 19 | } |