changeset 597:064468702a8d

6968497: localized text appears in raw diagnostic Reviewed-by: darcy
author jjg
date Mon, 12 Jul 2010 16:37:46 -0700
parents d2b7ecf33b35
children eaab979c8b36 a5454419dd46
files src/share/classes/com/sun/tools/javac/comp/Check.java test/tools/javac/generics/6946618/T6946618c.java test/tools/javac/generics/6946618/T6946618c.out
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/comp/Check.java	Wed Jun 30 18:06:29 2010 -0700
+++ b/src/share/classes/com/sun/tools/javac/comp/Check.java	Mon Jul 12 16:37:46 2010 -0700
@@ -563,7 +563,7 @@
             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;
             }
--- a/test/tools/javac/generics/6946618/T6946618c.java	Wed Jun 30 18:06:29 2010 -0700
+++ b/test/tools/javac/generics/6946618/T6946618c.java	Mon Jul 12 16:37:46 2010 -0700
@@ -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
--- a/test/tools/javac/generics/6946618/T6946618c.out	Wed Jun 30 18:06:29 2010 -0700
+++ b/test/tools/javac/generics/6946618/T6946618c.out	Mon Jul 12 16:37:46 2010 -0700
@@ -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