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