T6390045a.java revision 553:9d9f26857129
1198151Sthompsa/* 2198151Sthompsa * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 3198151Sthompsa * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4198151Sthompsa * 5198151Sthompsa * This code is free software; you can redistribute it and/or modify it 6198151Sthompsa * under the terms of the GNU General Public License version 2 only, as 7198151Sthompsa * published by the Free Software Foundation. 8198151Sthompsa * 9198151Sthompsa * This code is distributed in the hope that it will be useful, but WITHOUT 10198151Sthompsa * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11198151Sthompsa * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12198151Sthompsa * version 2 for more details (a copy is included in the LICENSE file that 13198151Sthompsa * accompanied this code). 14198151Sthompsa * 15198151Sthompsa * You should have received a copy of the GNU General Public License version 16198151Sthompsa * 2 along with this work; if not, write to the Free Software Foundation, 17198151Sthompsa * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18198151Sthompsa * 19198151Sthompsa * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20198151Sthompsa * or visit www.oracle.com if you need additional information or have any 21198151Sthompsa * questions. 22198151Sthompsa */ 23198151Sthompsa 24198151Sthompsa/* 25198151Sthompsa * @test 26198151Sthompsa * @bug 6390045 27198151Sthompsa * @summary Unexpected error "cannot access java.lang.Void" with '-target cldc1.0' with -source >=1.5 28198151Sthompsa * 29198151Sthompsa * @author mcimadamore 30198151Sthompsa * @compile -XDfailcomplete=java.lang.Void T6390045a.java 31198151Sthompsa */ 32198151Sthompsa 33198151Sthompsaclass T6390045a { 34198151Sthompsa boolean b; 35198151Sthompsa short s; 36198151Sthompsa Object o; 37198151Sthompsa Object p = b ? o : s; 38198151Sthompsa} 39198151Sthompsa