8200301: deduplicate lambda methods

Reviewed-by: vromero, mcimadamore
This commit is contained in:
Liam Miller-Cushon 2018-03-27 13:48:16 -04:00
parent 86c4fd2db5
commit debaf13f38
10 changed files with 1322 additions and 9 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2018, 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 8044537
* @bug 8044537 8200301
* @summary Checking ACC_SYNTHETIC flag is generated for bridge method
* generated for lambda expressions and method references.
* @modules jdk.compiler/com.sun.tools.javac.api
@ -31,7 +31,8 @@
* jdk.jdeps/com.sun.tools.classfile
* @library /tools/lib /tools/javac/lib ../lib
* @build toolbox.ToolBox InMemoryFileManager TestResult TestBase
* @build BridgeMethodsForLambdaTest SyntheticTestDriver ExpectedClass ExpectedClasses
* @build SyntheticTestDriver ExpectedClass ExpectedClasses
* @compile -XDdeduplicateLambdas=false BridgeMethodsForLambdaTest.java
* @run main SyntheticTestDriver BridgeMethodsForLambdaTest 1
*/