提交 a97f8703 编写于 作者: J jjg

6968497: localized text appears in raw diagnostic

Reviewed-by: darcy
上级 f075d0b4
...@@ -563,7 +563,7 @@ public class Check { ...@@ -563,7 +563,7 @@ public class Check {
while (args.nonEmpty()) { while (args.nonEmpty()) {
if (args.head.tag == WILDCARD) if (args.head.tag == WILDCARD)
return typeTagError(pos, return typeTagError(pos,
Log.getLocalizedString("type.req.exact"), diags.fragment("type.req.exact"),
args.head); args.head);
args = args.tail; args = args.tail;
} }
......
/* /*
* @test /nodynamiccopyright/ * @test /nodynamiccopyright/
* @bug 6946618 * @bug 6946618 6968497
* @summary sqe test fails: javac/generics/NewOnTypeParm in pit jdk7 b91 in all platforms. * @summary sqe test fails: javac/generics/NewOnTypeParm in pit jdk7 b91 in all platforms.
* @author mcimadamore * @author mcimadamore
* @compile/fail/ref=T6946618c.out -XDrawDiagnostics T6946618c.java * @compile/fail/ref=T6946618c.out -XDrawDiagnostics T6946618c.java
......
T6946618c.java:13:24: compiler.err.type.found.req: ? extends java.lang.String, class or interface without bounds T6946618c.java:13:24: compiler.err.type.found.req: ? extends java.lang.String, (compiler.misc.type.req.exact)
T6946618c.java:14:24: compiler.err.type.found.req: ? super java.lang.String, class or interface without bounds T6946618c.java:14:24: compiler.err.type.found.req: ? super java.lang.String, (compiler.misc.type.req.exact)
T6946618c.java:15:24: compiler.err.type.found.req: ?, class or interface without bounds T6946618c.java:15:24: compiler.err.type.found.req: ?, (compiler.misc.type.req.exact)
3 errors 3 errors
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册