test/script/basic/JDK-8026161.js

Tue, 11 Feb 2014 12:05:22 +0100

author
mnunez
date
Tue, 11 Feb 2014 12:05:22 +0100
changeset 883
a39251394102
parent 848
bb3e5d0fcc33
child 952
6d5471a497fb
child 962
ac62e33a99b0
permissions
-rw-r--r--

8033231: test fails with java.lang.UnsatisfiedLinkError
Reviewed-by: attila, sundar

attila@632 1 /*
mnunez@848 2 * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
attila@632 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
attila@632 4 *
attila@632 5 * This code is free software; you can redistribute it and/or modify it
attila@632 6 * under the terms of the GNU General Public License version 2 only, as
attila@632 7 * published by the Free Software Foundation.
attila@632 8 *
attila@632 9 * This code is distributed in the hope that it will be useful, but WITHOUT
attila@632 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
attila@632 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
attila@632 12 * version 2 for more details (a copy is included in the LICENSE file that
attila@632 13 * accompanied this code).
attila@632 14 *
attila@632 15 * You should have received a copy of the GNU General Public License version
attila@632 16 * 2 along with this work; if not, write to the Free Software Foundation,
attila@632 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
attila@632 18 *
attila@632 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
attila@632 20 * or visit www.oracle.com if you need additional information or have any
attila@632 21 * questions.
attila@632 22 */
attila@632 23
attila@632 24 /**
attila@632 25 * JDK-8026161: Don't narrow floating-point literals in the lexer
attila@632 26 *
attila@632 27 * @test
attila@632 28 * @run
attila@632 29 */
attila@632 30
mnunez@848 31 print(Java.type("jdk.nashorn.test.models.IntFloatOverloadSelection").overloadedMethod(1))
mnunez@848 32 print(Java.type("jdk.nashorn.test.models.IntFloatOverloadSelection").overloadedMethod(1.0))

mercurial