InaccessibleMref01.java revision 1614:12202e6ab78a
155857Ssheldonh/*
255857Ssheldonh * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
355857Ssheldonh * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4158688Spav *
555857Ssheldonh * This code is free software; you can redistribute it and/or modify it
655857Ssheldonh * under the terms of the GNU General Public License version 2 only, as
755857Ssheldonh * published by the Free Software Foundation.
855857Ssheldonh *
955857Ssheldonh * This code is distributed in the hope that it will be useful, but WITHOUT
1055857Ssheldonh * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1155857Ssheldonh * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1255857Ssheldonh * version 2 for more details (a copy is included in the LICENSE file that
1355857Ssheldonh * accompanied this code).
14158688Spav *
15158688Spav * You should have received a copy of the GNU General Public License version
1655857Ssheldonh * 2 along with this work; if not, write to the Free Software Foundation,
1782501Ssheldonh * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1855857Ssheldonh *
19158688Spav * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20158688Spav * or visit www.oracle.com if you need additional information or have any
21158688Spav * questions.
22158688Spav */
23158688Spav
24158688Spav/*
25158688Spav * @test
26158688Spav * @bug 8003280
27158688Spav * @summary Add lambda tests
28158688Spav *  check that classfiles with member ref CP entries are read correctly
29158688Spav * @compile/fail/ref=InaccessibleMref01.out -XDrawDiagnostics InaccessibleMref01.java
30158688Spav */
31158688Spavclass InaccessibleMref01 {
3282501Ssheldonh    interface SAM {
3355857Ssheldonh        void m();
34158688Spav    }
35158688Spav
3655857Ssheldonh    void test(p1.C c) {
3782501Ssheldonh        SAM s = c::m;
3882501Ssheldonh    }
3955857Ssheldonh}
4082501Ssheldonh