equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2015 Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8006582 |
26 * @bug 8006582 8037546 |
27 * @summary javac should generate method parameters correctly. |
27 * @summary javac should generate method parameters correctly. |
28 * @build Tester |
28 * @build Tester |
29 * @compile -parameters LambdaTest.java |
29 * @compile -parameters LambdaTest.java |
30 * @run main Tester LambdaTest LambdaTest.out |
30 * @run main Tester LambdaTest LambdaTest.out |
31 */ |
31 */ |
32 |
32 |
33 /** |
33 /** |
34 * Parameter names are not recorded for lambdas. This test verifies |
34 * Post https://bugs.openjdk.java.net/browse/JDK-8037546, this test verifies |
35 * that there are no MethodParameters attribute for lambdas. |
35 * that MethodParameters attribute for lambdas are emitted properly. |
36 */ |
36 */ |
37 class LambdaTest { |
37 class LambdaTest { |
38 |
38 |
39 interface I { |
39 interface I { |
40 int m(int x); |
40 int m(int x); |