508N/A/*
553N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
508N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
508N/A *
508N/A * This code is free software; you can redistribute it and/or modify it
508N/A * under the terms of the GNU General Public License version 2 only, as
508N/A * published by the Free Software Foundation.
508N/A *
508N/A * This code is distributed in the hope that it will be useful, but WITHOUT
508N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
508N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
508N/A * version 2 for more details (a copy is included in the LICENSE file that
508N/A * accompanied this code).
508N/A *
508N/A * You should have received a copy of the GNU General Public License version
508N/A * 2 along with this work; if not, write to the Free Software Foundation,
508N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
508N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
508N/A */
508N/A
508N/A/*
508N/A * @test
508N/A * @summary Unchecked method call on a method declared inside anonymous inner causes javac to crash
508N/A * @compile -Xlint:unchecked T6881645.java
508N/A */
508N/A
508N/Aclass T6881645 {
508N/A Object o = new Object() {
508N/A <Z> void m (Class<Z> x) {}
508N/A void test() {
508N/A m((Class)null);
508N/A }
508N/A };
508N/A}
508N/A