strarup@1594: /* strarup@1594: * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. strarup@1594: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. strarup@1594: * strarup@1594: * This code is free software; you can redistribute it and/or modify it strarup@1594: * under the terms of the GNU General Public License version 2 only, as strarup@1594: * published by the Free Software Foundation. strarup@1594: * strarup@1594: * This code is distributed in the hope that it will be useful, but WITHOUT strarup@1594: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or strarup@1594: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License strarup@1594: * version 2 for more details (a copy is included in the LICENSE file that strarup@1594: * accompanied this code). strarup@1594: * strarup@1594: * You should have received a copy of the GNU General Public License version strarup@1594: * 2 along with this work; if not, write to the Free Software Foundation, strarup@1594: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. strarup@1594: * strarup@1594: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA strarup@1594: * or visit www.oracle.com if you need additional information or have any strarup@1594: * questions. strarup@1594: */ strarup@1594: strarup@1594: /* strarup@1594: * @test strarup@1594: * @bug 8006582 strarup@1594: * @summary javac should generate method parameters correctly. strarup@1594: * @build Tester strarup@1594: * @compile -parameters UncommonParamNames.java strarup@1594: * @run main Tester UncommonParamNames strarup@1594: */ strarup@1594: strarup@1594: /** Test uncommon parameter names */ strarup@1594: class UncommonParamNames { strarup@1594: public UncommonParamNames(int _x) { } strarup@1594: public UncommonParamNames(short $1) { } strarup@1594: public UncommonParamNames(long \u0061) { } strarup@1594: public UncommonParamNames(char zero\u0000zero\u0000) { } strarup@1594: public UncommonParamNames(String zero\u0000zero\u0000seven\u0007) { } strarup@1594: public UncommonParamNames(Object zero\u0000zero\u0000eight\u0008) { } strarup@1594: public UncommonParamNames(Object aLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName, strarup@1594: Object baLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName, strarup@1594: Object cbaLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName) { } strarup@1594: public UncommonParamNames(int a, int ba, int cba, int dcba, int edcba, int fedcba, int gfedcba, strarup@1594: int hgfedcba, int ihgfedcba, int jihgfedcba, int kjihgfedcba, int lkjihgfedcba, strarup@1594: int mlkjihgfedcba, int nmlkjihgfedcba, int onmlkjihgfedcba, int ponmlkjihgfedcba, strarup@1594: int qponmlkjihgfedcba, int rqponmlkjihgfedcba, int srqponmlkjihgfedcba, strarup@1594: int tsrqponmlkjihgfedcba, int utsrqponmlkjihgfedcba, int vutsrqponmlkjihgfedcba, strarup@1594: int wvutsrqponmlkjihgfedcba, int xwvutsrqponmlkjihgfedcba, strarup@1594: int yxwvutsrqponmlkjihgfedcba, int zyxwvutsrqponmlkjihgfedcba) { } strarup@1594: strarup@1594: public void foo(int _x) { } strarup@1594: public void foo(short $1) { } strarup@1594: public void foo(long \u0061) { } strarup@1594: public void foo(char zero\u0000zero\u0000) { } strarup@1594: public void foo(String zero\u0000zero\u0000seven\u0007) { } strarup@1594: public void foo(Object zero\u0000zero\u0000eight\u0008) { } strarup@1594: public void foo(Object aLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName, strarup@1594: Object baLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName, strarup@1594: Object cbaLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName) { } strarup@1594: public void foo(int a, int ba, int cba, int dcba, int edcba, int fedcba, int gfedcba, strarup@1594: int hgfedcba, int ihgfedcba, int jihgfedcba, int kjihgfedcba, int lkjihgfedcba, strarup@1594: int mlkjihgfedcba, int nmlkjihgfedcba, int onmlkjihgfedcba, int ponmlkjihgfedcba, strarup@1594: int qponmlkjihgfedcba, int rqponmlkjihgfedcba, int srqponmlkjihgfedcba, strarup@1594: int tsrqponmlkjihgfedcba, int utsrqponmlkjihgfedcba, int vutsrqponmlkjihgfedcba, strarup@1594: int wvutsrqponmlkjihgfedcba, int xwvutsrqponmlkjihgfedcba, strarup@1594: int yxwvutsrqponmlkjihgfedcba, int zyxwvutsrqponmlkjihgfedcba) { } strarup@1594: }