CastWarn9.java revision 553
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * This code is free software; you can redistribute it and/or modify it
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * under the terms of the GNU General Public License version 2 only, as
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * published by the Free Software Foundation.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * This code is distributed in the hope that it will be useful, but WITHOUT
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * version 2 for more details (a copy is included in the LICENSE file that
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * accompanied this code).
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * You should have received a copy of the GNU General Public License version
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk * 2 along with this work; if not, write to the Free Software Foundation,
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * or visit www.oracle.com if you need additional information or have any
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * questions.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * @bug 4916607
dff2cc5646d4437ab9e0cb1dcb59da65462a5938jeff.schenk * @summary Test casts (legal, warning, and errors)
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * @author gafter
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * @compile/fail -Werror -Xlint:unchecked CastWarn9.java
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk // --- Disjoint ---
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk private interface DA<T> { }
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk private <N extends Number, I extends Integer, R extends Runnable, S extends String> void disjointness() {