mcimadamore@1513: /* ksrini@2227: * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. mcimadamore@1513: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@1513: * mcimadamore@1513: * This code is free software; you can redistribute it and/or modify it mcimadamore@1513: * under the terms of the GNU General Public License version 2 only, as mcimadamore@1513: * published by the Free Software Foundation. mcimadamore@1513: * mcimadamore@1513: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@1513: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@1513: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@1513: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@1513: * accompanied this code). mcimadamore@1513: * mcimadamore@1513: * You should have received a copy of the GNU General Public License version mcimadamore@1513: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@1513: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@1513: * mcimadamore@1513: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA mcimadamore@1513: * or visit www.oracle.com if you need additional information or have any mcimadamore@1513: * questions. mcimadamore@1513: */ mcimadamore@1513: mcimadamore@1513: /* mcimadamore@1513: * @test mcimadamore@1513: * @bug 8005166 mcimadamore@1513: * @summary Add support for static interface methods mcimadamore@1513: * Smoke test for static imports of static interface methods mcimadamore@1513: * @compile -XDallowStaticInterfaceMethods StaticImport1.java mcimadamore@1513: */ mcimadamore@1513: mcimadamore@1513: import static pkg.A.*; mcimadamore@1513: mcimadamore@1513: class StaticImport1 { mcimadamore@1513: void test() { mcimadamore@1513: m(); mcimadamore@1513: } mcimadamore@1513: }