mcimadamore@357: /* ohair@554: * Copyright (c) 2009, Oracle and/or its affiliates. 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: * 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@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 T6390045b.java mcimadamore@357: */ mcimadamore@357: mcimadamore@357: class T6390045b { mcimadamore@357: short s; mcimadamore@357: Object o; mcimadamore@357: Object p = choose(o, s); mcimadamore@357: T choose(T t1, T t2) { return t1; } mcimadamore@357: }