Fri, 24 May 2013 15:27:12 +0100
8014649: Regression: bug in Resolve.resolveOperator
Summary: Missing curly braces causes Resolve.findMethod to be called spuriously
Reviewed-by: jjg, vromero
duke@1 | 1 | /* |
duke@1 | 2 | * @test /nodynamiccopyright/ |
duke@1 | 3 | * @bug 6394563 |
duke@1 | 4 | * @summary javac ignores -nowarn switch in 1.5.0_06 for deprecation warnings |
duke@1 | 5 | * |
jjg@611 | 6 | * @compile/ref=T6394563.note.out -XDrawDiagnostics -nowarn T6394563.java |
jjg@611 | 7 | * @compile/ref=T6394563.note.out -XDrawDiagnostics -nowarn -source 1.5 T6394563.java |
jjg@611 | 8 | * @compile/ref=T6394563.empty.out -XDrawDiagnostics -nowarn -source 1.4 T6394563.java |
duke@1 | 9 | * |
jjg@611 | 10 | * @compile/ref=T6394563.warn.out -XDrawDiagnostics -Xlint -nowarn T6394563.java |
jjg@611 | 11 | * @compile/ref=T6394563.warn.out -XDrawDiagnostics -Xlint -nowarn -source 1.5 T6394563.java |
jjg@611 | 12 | * @compile/ref=T6394563.empty.out -XDrawDiagnostics -Xlint -nowarn -source 1.4 T6394563.java |
duke@1 | 13 | */ |
duke@1 | 14 | |
duke@1 | 15 | class T6394563 { |
duke@1 | 16 | void useDeprecated() { |
duke@1 | 17 | deprecated.foo(); |
duke@1 | 18 | } |
duke@1 | 19 | } |
duke@1 | 20 | |
duke@1 | 21 | class deprecated { |
duke@1 | 22 | /** @deprecated */ static void foo() { } |
duke@1 | 23 | } |