view test/tools/javac/Diagnostics/6722234/T6722234b.java @ 4081:cd6eb36db1bb jdk8u292-b05

8078024: javac, several incorporation steps are silently failing when an error should be reported Reviewed-by: phh, andrew
author peterz
date Wed, 22 Apr 2015 09:44:15 -0700
parents ed31953ca025
children
line wrap: on
line source

/**
 * @test /nodynamiccopyright/
 * @bug     6722234 8078024
 * @summary javac diagnostics need better integration with the type-system
 * @author  mcimadamore
 * @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -XDdiags=simpleNames T6722234b.java
 * @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -XDdiags=simpleNames,where T6722234b.java
 */

import java.util.*;

class T6722234b {
    <T> void m(List<T> l1, List<T> l2) {}

    void test(List<? extends T6722234b> list) {
        m(list, list);
    }
}