Fri, 16 Jul 2010 19:35:24 -0700
6911256: Project Coin: Support Automatic Resource Management (ARM) blocks in the compiler
6964740: Project Coin: More tests for ARM compiler changes
6965277: Project Coin: Correctness issues in ARM implementation
6967065: add -Xlint warning category for Automatic Resource Management (ARM)
Reviewed-by: jjb, darcy, mcimadamore, jjg, briangoetz
Contributed-by: tball@google.com
darcy@609 | 1 | /* |
darcy@609 | 2 | * @test /nodynamiccopyright/ |
darcy@609 | 3 | * @bug 6911256 6964740 |
darcy@609 | 4 | * @author Joseph D. Darcy |
darcy@609 | 5 | * @summary Test error messages for an unadorned try |
darcy@609 | 6 | * @compile/fail/ref=PlainTry6.out -XDrawDiagnostics -source 6 PlainTry.java |
darcy@609 | 7 | * @compile/fail/ref=PlainTry.out -XDrawDiagnostics PlainTry.java |
darcy@609 | 8 | */ |
darcy@609 | 9 | public class PlainTry { |
darcy@609 | 10 | public static void main(String... args) { |
darcy@609 | 11 | try { |
darcy@609 | 12 | ; |
darcy@609 | 13 | } |
darcy@609 | 14 | } |
darcy@609 | 15 | } |