8037546: javac -parameters does not emit parameter names for lambda expressions

MethodParameters attribute is missing for synthetic methods encoding lambda expressions.

Reviewed-by: rfield, mcimadamore
This commit is contained in:
Srikanth Adayapalam 2015-01-13 10:25:24 +01:00 committed by Jan Lahoda
parent 1be81e358c
commit 33a3e1add3
5 changed files with 21 additions and 19 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2015 Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,7 +23,7 @@
/*
* @test
* @bug 8006582
* @bug 8006582 8037546
* @summary javac should generate method parameters correctly.
* @build Tester
* @compile -parameters LambdaTest.java
@ -31,8 +31,8 @@
*/
/**
* Parameter names are not recorded for lambdas. This test verifies
* that there are no MethodParameters attribute for lambdas.
* Post https://bugs.openjdk.java.net/browse/JDK-8037546, this test verifies
* that MethodParameters attribute for lambdas are emitted properly.
*/
class LambdaTest {