T6558559a.java revision 797
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater * This code is free software; you can redistribute it and/or modify it
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * under the terms of the GNU General Public License version 2 only, as
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * published by the Free Software Foundation.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * This code is distributed in the hope that it will be useful, but WITHOUT
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * version 2 for more details (a copy is included in the LICENSE file that
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * accompanied this code).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * You should have received a copy of the GNU General Public License version
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * 2 along with this work; if not, write to the Free Software Foundation,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User * or visit www.oracle.com if you need additional information or have any
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * @bug 6558559
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * @summary Extra "unchecked" diagnostic
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein * @author Maurizio Cimadamore
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User * @compile T6558559a.java -Xlint:unchecked -Werror
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein interface A<T> {}
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews static class B<T> {}
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein B<?> y = (B<?>)x;