test/langtools/tools/javac/classfiles/attributes/Synthetic/BridgeMethodsForLambdaTest.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2018, 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 8044537 |
26 * @bug 8044537 8200301 |
27 * @summary Checking ACC_SYNTHETIC flag is generated for bridge method |
27 * @summary Checking ACC_SYNTHETIC flag is generated for bridge method |
28 * generated for lambda expressions and method references. |
28 * generated for lambda expressions and method references. |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
30 * jdk.compiler/com.sun.tools.javac.main |
30 * jdk.compiler/com.sun.tools.javac.main |
31 * jdk.jdeps/com.sun.tools.classfile |
31 * jdk.jdeps/com.sun.tools.classfile |
32 * @library /tools/lib /tools/javac/lib ../lib |
32 * @library /tools/lib /tools/javac/lib ../lib |
33 * @build toolbox.ToolBox InMemoryFileManager TestResult TestBase |
33 * @build toolbox.ToolBox InMemoryFileManager TestResult TestBase |
34 * @build BridgeMethodsForLambdaTest SyntheticTestDriver ExpectedClass ExpectedClasses |
34 * @build SyntheticTestDriver ExpectedClass ExpectedClasses |
|
35 * @compile -XDdeduplicateLambdas=false BridgeMethodsForLambdaTest.java |
35 * @run main SyntheticTestDriver BridgeMethodsForLambdaTest 1 |
36 * @run main SyntheticTestDriver BridgeMethodsForLambdaTest 1 |
36 */ |
37 */ |
37 |
38 |
38 import java.util.Comparator; |
39 import java.util.Comparator; |
39 import java.util.stream.IntStream; |
40 import java.util.stream.IntStream; |