equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2014, 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. |
44 throw new AssertionError("Expected exception not thrown"); |
44 throw new AssertionError("Expected exception not thrown"); |
45 } catch (IOException e) { |
45 } catch (IOException e) { |
46 System.out.println("OK: caught expected exception: " + e.getLocalizedMessage()); |
46 System.out.println("OK: caught expected exception: " + e.getLocalizedMessage()); |
47 } |
47 } |
48 } |
48 } |
49 public static void main(String... args) { |
49 public static void main(String... args) throws IOException { |
50 new T6422215().test(args); |
50 try (T6422215 t = new T6422215()) { |
|
51 t.test(args); |
|
52 } |
51 } |
53 } |
52 } |
54 } |