emc@2079: /* emc@2079: * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. emc@2079: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. emc@2079: * emc@2079: * This code is free software; you can redistribute it and/or modify it emc@2079: * under the terms of the GNU General Public License version 2 only, as emc@2079: * published by the Free Software Foundation. emc@2079: * emc@2079: * This code is distributed in the hope that it will be useful, but WITHOUT emc@2079: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or emc@2079: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License emc@2079: * version 2 for more details (a copy is included in the LICENSE file that emc@2079: * accompanied this code). emc@2079: * emc@2079: * You should have received a copy of the GNU General Public License version emc@2079: * 2 along with this work; if not, write to the Free Software Foundation, emc@2079: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. emc@2079: * emc@2079: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA emc@2079: * or visit www.oracle.com if you need additional information or have any emc@2079: * questions. emc@2079: */ emc@2079: emc@2079: /* emc@2079: * @test emc@2079: * @bug 8021339 emc@2079: * @summary Allow arrays in intersection types emc@2079: * @compile ArraysInIntersections.java emc@2079: */ emc@2079: emc@2079: import java.io.Serializable; emc@2079: emc@2079: public class ArraysInIntersections { emc@2079: emc@2079: public Object m() { emc@2079: return (Serializable & Integer[]) new Integer[1]; emc@2079: } emc@2079: emc@2079: }