mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
This commit is contained in:
parent
270fe13182
commit
3789983e89
56923 changed files with 3 additions and 15727 deletions
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8003280
|
||||
* @summary Add lambda tests
|
||||
* check that lambda features are not enabled with source < 8
|
||||
* @compile/fail/ref=SourceLevelTest.out -XDrawDiagnostics -source 7 SourceLevelTest.java
|
||||
*/
|
||||
|
||||
class SourceLevelTest {
|
||||
interface I {
|
||||
default void m() { SourceLevelTest.impl(this); }
|
||||
}
|
||||
|
||||
interface SAM {
|
||||
void m();
|
||||
}
|
||||
|
||||
SAM s1 = () -> { };
|
||||
SAM s2 = this::m;
|
||||
|
||||
static void impl(I i) {}
|
||||
void m() {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue