mcimadamore@79: /* ohair@554: * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. mcimadamore@79: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@79: * mcimadamore@79: * This code is free software; you can redistribute it and/or modify it mcimadamore@79: * under the terms of the GNU General Public License version 2 only, as mcimadamore@79: * published by the Free Software Foundation. mcimadamore@79: * mcimadamore@79: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@79: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@79: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@79: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@79: * accompanied this code). mcimadamore@79: * mcimadamore@79: * You should have received a copy of the GNU General Public License version mcimadamore@79: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@79: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@79: * ohair@554: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@554: * or visit www.oracle.com if you need additional information or have any ohair@554: * questions. mcimadamore@79: */ mcimadamore@79: mcimadamore@79: /* mcimadamore@79: * @test mcimadamore@79: * @bug 6594284 mcimadamore@79: * @summary NPE thrown when calling a method on an intersection type mcimadamore@79: * @author Maurizio Cimadamore mcimadamore@79: * mcimadamore@79: * @compile/fail T6594284.java mcimadamore@79: */ mcimadamore@79: mcimadamore@79: public class T6594284 { mcimadamore@79: class A{ public void a(){}} mcimadamore@79: class B extends A{ public void b(){}} mcimadamore@79: interface I{ void i();} mcimadamore@79: interface I1 { void i1(); } mcimadamore@79: class E extends B implements I{ public void i(){};} mcimadamore@79: mcimadamore@79: class C{ mcimadamore@79: C arg; mcimadamore@79: } mcimadamore@79: }