6968497: localized text appears in raw diagnostic

Reviewed-by: darcy
This commit is contained in:
Jonathan Gibbons 2010-07-12 16:37:46 -07:00
parent e438672595
commit 29ceaebc37
3 changed files with 5 additions and 5 deletions
langtools
src/share/classes/com/sun/tools/javac/comp
test/tools/javac/generics/6946618

@ -563,7 +563,7 @@ public class Check {
while (args.nonEmpty()) {
if (args.head.tag == WILDCARD)
return typeTagError(pos,
Log.getLocalizedString("type.req.exact"),
diags.fragment("type.req.exact"),
args.head);
args = args.tail;
}

@ -1,6 +1,6 @@
/*
* @test /nodynamiccopyright/
* @bug 6946618
* @bug 6946618 6968497
* @summary sqe test fails: javac/generics/NewOnTypeParm in pit jdk7 b91 in all platforms.
* @author mcimadamore
* @compile/fail/ref=T6946618c.out -XDrawDiagnostics T6946618c.java

@ -1,4 +1,4 @@
T6946618c.java:13:24: compiler.err.type.found.req: ? extends java.lang.String, class or interface without bounds
T6946618c.java:14:24: compiler.err.type.found.req: ? super java.lang.String, class or interface without bounds
T6946618c.java:15:24: compiler.err.type.found.req: ?, 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, (compiler.misc.type.req.exact)
T6946618c.java:15:24: compiler.err.type.found.req: ?, (compiler.misc.type.req.exact)
3 errors