768N/A/*
768N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
768N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
768N/A *
768N/A * This code is free software; you can redistribute it and/or modify it
768N/A * under the terms of the GNU General Public License version 2 only, as
768N/A * published by the Free Software Foundation.
768N/A *
768N/A * This code is distributed in the hope that it will be useful, but WITHOUT
768N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
768N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
768N/A * version 2 for more details (a copy is included in the LICENSE file that
768N/A * accompanied this code).
768N/A *
768N/A * You should have received a copy of the GNU General Public License version
768N/A * 2 along with this work; if not, write to the Free Software Foundation,
768N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
768N/A *
768N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
768N/A * or visit www.oracle.com if you need additional information or have any
768N/A * questions.
768N/A */
768N/A
768N/A/*
768N/A * @test
768N/A * @bug 6956758
768N/A *
768N/A * @summary NPE in com.sun.tools.javac.code.Symbol - isSubClass
768N/A * @author Maurizio Cimadamore
768N/A * @compile T6956758pos.java
768N/A *
768N/A */
768N/A
768N/Aclass T6956758pos {
768N/A
768N/A interface I {}
768N/A
768N/A static class C {
768N/A <T extends C & I> T cloneObject(T object) throws Exception {
768N/A return (T)object.clone();
768N/A }
768N/A }
768N/A}