851N/A/**
851N/A * @test /nodynamiccopyright/
851N/A * @bug 6594914
851N/A * @summary \\@SuppressWarnings("deprecation") does not not work for the type of a variable
851N/A * @compile/ref=T6594914b.out -XDenableSunApiLintControl -XDrawDiagnostics -Xlint:sunapi T6594914b.java
851N/A */
851N/A
851N/A
851N/Aclass T6747671b {
851N/A
851N/A sun.misc.Lock a1; //warn
851N/A
851N/A @SuppressWarnings("sunapi")
851N/A sun.misc.Lock a2;
851N/A
851N/A <X extends sun.misc.Lock> sun.misc.Lock m1(sun.misc.Lock a)
851N/A throws sun.misc.CEFormatException { return null; } //warn
851N/A
851N/A @SuppressWarnings("sunapi")
851N/A <X extends sun.misc.Lock> sun.misc.Lock m2(sun.misc.Lock a)
851N/A throws sun.misc.CEFormatException { return null; }
851N/A
851N/A void test() {
851N/A sun.misc.Lock a1; //warn
851N/A
851N/A @SuppressWarnings("sunapi")
851N/A sun.misc.Lock a2;
851N/A }
851N/A}