test/tools/javac/TryWithResources/PlainTry.java

changeset 0
959103a6100f
child 2525
2eb010b6cb22
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/TryWithResources/PlainTry.java	Wed Apr 27 01:34:52 2016 +0800
     1.3 @@ -0,0 +1,15 @@
     1.4 +/*
     1.5 + * @test  /nodynamiccopyright/
     1.6 + * @bug 6911256 6964740
     1.7 + * @author Joseph D. Darcy
     1.8 + * @summary Test error messages for an unadorned try
     1.9 + * @compile/fail/ref=PlainTry6.out -XDrawDiagnostics -source 6 -Xlint:-options PlainTry.java
    1.10 + * @compile/fail/ref=PlainTry.out  -XDrawDiagnostics                           PlainTry.java
    1.11 + */
    1.12 +public class PlainTry {
    1.13 +    public static void main(String... args) {
    1.14 +        try {
    1.15 +            ;
    1.16 +        }
    1.17 +    }
    1.18 +}

mercurial