langtools/test/tools/javac/Diagnostics/6799605/T6799605.java
author peterz
Fri, 28 May 2010 13:32:40 +0400
changeset 5594 3db39773da2e
parent 3766 7e2df99e9223
child 30014 fc1f2b200c1f
permissions -rw-r--r--
6954231: SynthTextPaneUI.installUI() doesn't set component to opaque even if prop was not set by client progr Reviewed-by: alexp

/**
 * @test /nodynamiccopyright/
 * @bug     6799605
 * @summary Basic/Raw formatters should use type/symbol printer instead of toString()
 * @author  mcimadamore
 * @compile/fail/ref=T6799605.out -XDrawDiagnostics  T6799605.java
 * @compile/fail/ref=T6799605.out -XDoldDiags -XDrawDiagnostics  T6799605.java
 */

class T6799605<X> {

    <T extends T6799605<T>> void m(T6799605<T> x1) {}
    <T> void m(T6799605<T> x1, T6799605<T> x2) {}
    <T> void m(T6799605<T> x1, T6799605<T> x2, T6799605<T> x3) {}

    void test(T6799605<?> t) {
        m(t);
        m(t, t);
        m(t, t, t);
    }
}