T5034609.java revision 0
4491N/A/*
4491N/A * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
4491N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4491N/A *
4491N/A * This code is free software; you can redistribute it and/or modify it
4491N/A * under the terms of the GNU General Public License version 2 only, as
4491N/A * published by the Free Software Foundation.
4491N/A *
4491N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4491N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4491N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4491N/A * version 2 for more details (a copy is included in the LICENSE file that
4491N/A * accompanied this code).
4491N/A *
4491N/A * You should have received a copy of the GNU General Public License version
4491N/A * 2 along with this work; if not, write to the Free Software Foundation,
4491N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4491N/A *
4491N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
4491N/A * CA 95054 USA or visit www.sun.com if you need additional information or
4491N/A * have any questions.
4491N/A */
4491N/A
1627N/A/*
4488N/A * @test
1627N/A * @bug 5034609
1627N/A * @summary Capture conversion implementation breaks a cast test
0N/A * @compile -Xlint:unchecked -Werror T5034609.java
0N/A */
0N/A
0N/Ainterface DA<T> { }
0N/Ainterface DB<T> extends DA<T> { }
0N/Ainterface DC<T> extends DA<Integer> { }
0N/A
0N/Apublic class T5034609 {
0N/A Object o = (DC<?>) (DA<?>) null; // <<pass>>
0N/A}
0N/A