Thu, 16 Mar 2017 17:39:31 +0000
8173207: Upgrade compression library
Reviewed-by: sherman, jeff
attila@464 | 1 | /* |
attila@464 | 2 | * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
attila@464 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
attila@962 | 4 | * |
attila@464 | 5 | * This code is free software; you can redistribute it and/or modify it |
attila@464 | 6 | * under the terms of the GNU General Public License version 2 only, as |
attila@464 | 7 | * published by the Free Software Foundation. |
attila@962 | 8 | * |
attila@464 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
attila@464 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
attila@464 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
attila@464 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
attila@464 | 13 | * accompanied this code). |
attila@962 | 14 | * |
attila@464 | 15 | * You should have received a copy of the GNU General Public License version |
attila@464 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
attila@464 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
attila@962 | 18 | * |
attila@464 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
attila@464 | 20 | * or visit www.oracle.com if you need additional information or have any |
attila@464 | 21 | * questions. |
attila@464 | 22 | */ |
attila@464 | 23 | |
attila@464 | 24 | /** |
attila@464 | 25 | * JDK-8021189: Prevent access to constructors of restricted classes |
attila@962 | 26 | * |
attila@464 | 27 | * @test |
attila@464 | 28 | * @run |
attila@464 | 29 | */ |
sundar@468 | 30 | var InternalRunnableSuperclass = Java.type("jdk.nashorn.test.models.InternalRunnableSuperclass"); |
attila@464 | 31 | try { |
sundar@468 | 32 | new (InternalRunnableSuperclass.getInternalRunnableType())(); |
attila@464 | 33 | } catch(e) { |
attila@464 | 34 | print(e) |
attila@464 | 35 | } |