16307
|
1 |
/*
|
40316
|
2 |
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
16307
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
*
|
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
|
7 |
* published by the Free Software Foundation.
|
|
8 |
*
|
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that
|
|
13 |
* accompanied this code).
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License version
|
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
18 |
*
|
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
20 |
* or visit www.oracle.com if you need additional information or have any
|
|
21 |
* questions.
|
|
22 |
*/
|
|
23 |
|
|
24 |
/*
|
|
25 |
* @test
|
|
26 |
* @bug 8006582
|
|
27 |
* @summary javac should generate method parameters correctly.
|
30846
|
28 |
* @modules jdk.jdeps/com.sun.tools.classfile
|
40316
|
29 |
* @build MethodParametersTester
|
16307
|
30 |
* @compile -parameters UncommonParamNames.java
|
40316
|
31 |
* @run main MethodParametersTester UncommonParamNames UncommonParamNames.out
|
16307
|
32 |
*/
|
|
33 |
|
|
34 |
/** Test uncommon parameter names */
|
|
35 |
class UncommonParamNames {
|
|
36 |
public UncommonParamNames(int _x) { }
|
|
37 |
public UncommonParamNames(short $1) { }
|
|
38 |
public UncommonParamNames(long \u0061) { }
|
|
39 |
public UncommonParamNames(char zero\u0000zero\u0000) { }
|
|
40 |
public UncommonParamNames(String zero\u0000zero\u0000seven\u0007) { }
|
|
41 |
public UncommonParamNames(Object zero\u0000zero\u0000eight\u0008) { }
|
|
42 |
public UncommonParamNames(Object aLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName,
|
|
43 |
Object baLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName,
|
|
44 |
Object cbaLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName) { }
|
|
45 |
public UncommonParamNames(int a, int ba, int cba, int dcba, int edcba, int fedcba, int gfedcba,
|
|
46 |
int hgfedcba, int ihgfedcba, int jihgfedcba, int kjihgfedcba, int lkjihgfedcba,
|
|
47 |
int mlkjihgfedcba, int nmlkjihgfedcba, int onmlkjihgfedcba, int ponmlkjihgfedcba,
|
|
48 |
int qponmlkjihgfedcba, int rqponmlkjihgfedcba, int srqponmlkjihgfedcba,
|
|
49 |
int tsrqponmlkjihgfedcba, int utsrqponmlkjihgfedcba, int vutsrqponmlkjihgfedcba,
|
|
50 |
int wvutsrqponmlkjihgfedcba, int xwvutsrqponmlkjihgfedcba,
|
|
51 |
int yxwvutsrqponmlkjihgfedcba, int zyxwvutsrqponmlkjihgfedcba) { }
|
|
52 |
|
|
53 |
public void foo(int _x) { }
|
|
54 |
public void foo(short $1) { }
|
|
55 |
public void foo(long \u0061) { }
|
|
56 |
public void foo(char zero\u0000zero\u0000) { }
|
|
57 |
public void foo(String zero\u0000zero\u0000seven\u0007) { }
|
|
58 |
public void foo(Object zero\u0000zero\u0000eight\u0008) { }
|
|
59 |
public void foo(Object aLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName,
|
|
60 |
Object baLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName,
|
|
61 |
Object cbaLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongName) { }
|
|
62 |
public void foo(int a, int ba, int cba, int dcba, int edcba, int fedcba, int gfedcba,
|
|
63 |
int hgfedcba, int ihgfedcba, int jihgfedcba, int kjihgfedcba, int lkjihgfedcba,
|
|
64 |
int mlkjihgfedcba, int nmlkjihgfedcba, int onmlkjihgfedcba, int ponmlkjihgfedcba,
|
|
65 |
int qponmlkjihgfedcba, int rqponmlkjihgfedcba, int srqponmlkjihgfedcba,
|
|
66 |
int tsrqponmlkjihgfedcba, int utsrqponmlkjihgfedcba, int vutsrqponmlkjihgfedcba,
|
|
67 |
int wvutsrqponmlkjihgfedcba, int xwvutsrqponmlkjihgfedcba,
|
|
68 |
int yxwvutsrqponmlkjihgfedcba, int zyxwvutsrqponmlkjihgfedcba) { }
|
|
69 |
}
|