darcy@840: /* darcy@840: * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. darcy@840: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. darcy@840: * darcy@840: * This code is free software; you can redistribute it and/or modify it darcy@840: * under the terms of the GNU General Public License version 2 only, as darcy@840: * published by the Free Software Foundation. darcy@840: * darcy@840: * This code is distributed in the hope that it will be useful, but WITHOUT darcy@840: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or darcy@840: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License darcy@840: * version 2 for more details (a copy is included in the LICENSE file that darcy@840: * accompanied this code). darcy@840: * darcy@840: * You should have received a copy of the GNU General Public License version darcy@840: * 2 along with this work; if not, write to the Free Software Foundation, darcy@840: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. darcy@840: * darcy@840: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA darcy@840: * or visit www.oracle.com if you need additional information or have any darcy@840: * questions. darcy@840: */ darcy@840: darcy@840: // key: compiler.err.try.resource.trailing.semi darcy@840: darcy@840: class TryResoureTrailingSemi implements AutoCloseable { darcy@840: public static void main(String... args) { darcy@840: try(TryResoureTrailingSemi r = new TryResoureTrailingSemi();) { darcy@840: System.out.println(r.toString()); darcy@840: } darcy@840: } darcy@840: darcy@840: @Override darcy@840: public void close() {return;} darcy@840: }