mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
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:
parent
1be81e358c
commit
33a3e1add3
5 changed files with 21 additions and 19 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue