6968497: localized text appears in raw diagnostic
authorjjg
Mon, 12 Jul 2010 16:37:46 -0700
changeset 6032 03b276d8e6a6
parent 6031 50004868a787
child 6033 3978912e09a7
child 6143 79b7dee406cc
6968497: localized text appears in raw diagnostic Reviewed-by: darcy
langtools/src/share/classes/com/sun/tools/javac/comp/Check.java
langtools/test/tools/javac/generics/6946618/T6946618c.java
langtools/test/tools/javac/generics/6946618/T6946618c.out
--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Check.java	Wed Jun 30 18:06:29 2010 -0700
+++ b/langtools/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/langtools/test/tools/javac/generics/6946618/T6946618c.java	Wed Jun 30 18:06:29 2010 -0700
+++ b/langtools/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/langtools/test/tools/javac/generics/6946618/T6946618c.out	Wed Jun 30 18:06:29 2010 -0700
+++ b/langtools/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