langtools/test/tools/javac/diags/examples/CatchWithoutTry.java
changeset 14058 c7ec7facdd20
parent 11143 9dbe313bfb74
child 14450 7a62c5b13d6e
equal deleted inserted replaced
14057:b4b0377b8dba 14058:c7ec7facdd20
     1 /*
     1 /*
     2  * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 // key: compiler.err.catch.without.try
    24 // key: compiler.err.catch.without.try
    25 // key: compiler.err.expected
    25 // key: compiler.err.expected
       
    26 // key: compiler.err.not.stmt
       
    27 // key: compiler.err.lambda.not.supported.in.source
    26 
    28 
    27 class CatchWithoutTry {
    29 class CatchWithoutTry {
    28     void m() {
    30     void m() {
    29         catch (Exception e) {
    31         catch (Exception e) {
    30         }
    32         }