Wed, 05 Sep 2018 01:21:35 -0700
Added tag jdk8u192-b09 for changeset 456c0d45c43b
hannesw@1411 | 1 | /* |
hannesw@1411 | 2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
hannesw@1411 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
hannesw@1411 | 4 | * |
hannesw@1411 | 5 | * This code is free software; you can redistribute it and/or modify it |
hannesw@1411 | 6 | * under the terms of the GNU General Public License version 2 only, as |
hannesw@1411 | 7 | * published by the Free Software Foundation. |
hannesw@1411 | 8 | * |
hannesw@1411 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
hannesw@1411 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
hannesw@1411 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
hannesw@1411 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
hannesw@1411 | 13 | * accompanied this code). |
hannesw@1411 | 14 | * |
hannesw@1411 | 15 | * You should have received a copy of the GNU General Public License version |
hannesw@1411 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
hannesw@1411 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
hannesw@1411 | 18 | * |
hannesw@1411 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
hannesw@1411 | 20 | * or visit www.oracle.com if you need additional information or have any |
hannesw@1411 | 21 | * questions. |
hannesw@1411 | 22 | */ |
hannesw@1411 | 23 | |
hannesw@1411 | 24 | /** |
hannesw@1411 | 25 | * JDK-8098807: Strict eval throws ClassCastException with large scripts |
hannesw@1411 | 26 | * |
hannesw@1411 | 27 | * @test |
hannesw@1411 | 28 | * @run |
hannesw@1411 | 29 | * @option -scripting |
hannesw@1411 | 30 | */ |
hannesw@1411 | 31 | |
hannesw@1411 | 32 | "use strict"; |
hannesw@1411 | 33 | |
hannesw@1411 | 34 | var path = __DIR__ + "JDK-8098807-payload.js" |
hannesw@1411 | 35 | var source = readFully(path); |
hannesw@1411 | 36 | eval(source); |