T6722234c.java revision 287
287N/A/*
287N/A * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
287N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
287N/A *
287N/A * This code is free software; you can redistribute it and/or modify it
287N/A * under the terms of the GNU General Public License version 2 only, as
287N/A * published by the Free Software Foundation.
287N/A *
287N/A * This code is distributed in the hope that it will be useful, but WITHOUT
287N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
287N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
287N/A * version 2 for more details (a copy is included in the LICENSE file that
287N/A * accompanied this code).
287N/A *
287N/A * You should have received a copy of the GNU General Public License version
287N/A * 2 along with this work; if not, write to the Free Software Foundation,
287N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
287N/A *
287N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
287N/A * CA 95054 USA or visit www.sun.com if you need additional information or
287N/A * have any questions.
287N/A */
287N/A
287N/A/**
287N/A * @test
287N/A * @bug 6722234
287N/A * @summary javac diagnostics need better integration with the type-system
287N/A * @author mcimadamore
287N/A * @compile/fail/ref=T6722234c.out -XDrawDiagnostics -XDdiags=simpleNames T6722234c.java
287N/A */
287N/A
287N/Aclass T6722234c {
287N/A static class String {}
287N/A <T> void m(String s2) {}
287N/A
287N/A void test() {
287N/A m("");
287N/A }
287N/A}