8187443: Forest Consolidation: Move files to unified layout

Reviewed-by: darcy, ihse
This commit is contained in:
Erik Joelsson 2017-09-12 19:03:39 +02:00
parent 270fe13182
commit 3789983e89
56923 changed files with 3 additions and 15727 deletions

View file

@ -0,0 +1,40 @@
/*
* @test /nodynamiccopyright/
* @bug 8003280 8081271
* @summary Add lambda tests
* spurious exceptions when checking references to inner constructors where
* the enclosing class is not defined in any outer context
* @compile/fail/ref=MethodReference37.out -XDrawDiagnostics MethodReference37.java
*/
class MethodReference37 {
interface SAM1<R> {
R invoke();
}
interface SAM2<R, A> {
R invoke(A a);
}
static class Outer {
class Inner { }
void test1() {
SAM2<Inner, Outer> sam = Inner::new;
}
void test2() {
SAM1<Inner> sam0 = Inner::new;
SAM2<Inner, Outer> sam1 = Inner::new;
}
}
static void test1() {
SAM2<Outer.Inner, Outer> sam = Outer.Inner::new;
}
void test2() {
SAM2<Outer.Inner, Outer> sam1 = Outer.Inner::new;
}
}