mcimadamore@357: /* mcimadamore@357: * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@357: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@357: * mcimadamore@357: * This code is free software; you can redistribute it and/or modify it mcimadamore@357: * under the terms of the GNU General Public License version 2 only, as mcimadamore@357: * published by the Free Software Foundation. mcimadamore@357: * mcimadamore@357: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@357: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@357: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@357: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@357: * accompanied this code). mcimadamore@357: * mcimadamore@357: * You should have received a copy of the GNU General Public License version mcimadamore@357: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@357: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@357: * mcimadamore@357: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@357: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@357: * have any questions. mcimadamore@357: */ mcimadamore@357: mcimadamore@357: /* mcimadamore@357: * @test mcimadamore@357: * @bug 6390045 mcimadamore@357: * @summary Unexpected error "cannot access java.lang.Void" with '-target cldc1.0' with -source >=1.5 mcimadamore@357: * mcimadamore@357: * @author mcimadamore mcimadamore@357: * @compile -XDfailcomplete=java.lang.Void T6390045a.java mcimadamore@357: */ mcimadamore@357: mcimadamore@357: class T6390045a { mcimadamore@357: boolean b; mcimadamore@357: short s; mcimadamore@357: Object o; mcimadamore@357: Object p = b ? o : s; mcimadamore@357: }