test/tools/javac/diags/examples/ExplicitParamsDoNotConformToBounds.java

changeset 1352
d4b3cb1ece84
parent 689
77cc34d5e548
child 2525
2eb010b6cb22
equal deleted inserted replaced
1351:f4e45397722a 1352:d4b3cb1ece84
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 // key: compiler.err.cant.apply.symbol.1 24 // key: compiler.err.cant.apply.symbol
25 // key: compiler.misc.explicit.param.do.not.conform.to.bounds 25 // key: compiler.misc.explicit.param.do.not.conform.to.bounds
26 26
27 class ExplicitParamsDoNotConformToBounds { 27 class ExplicitParamsDoNotConformToBounds {
28 <X extends Number> void m() {} 28 <X extends Number> void m() {}
29 { this.<String>m(); } 29 { this.<String>m(); }

mercurial