changeset 615:e79e8efe1b3e

6972747: CheckExamples fail when assertions are enabled Summary: The test calls the wrong version of JavacMessage constructor Reviewed-by: jjg
author mcimadamore
date Thu, 29 Jul 2010 15:57:18 +0100
parents 36c4ec4525b4
children 62f3f07002ea
files test/tools/javac/diags/Example.java
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/diags/Example.java	Thu Jul 29 15:56:25 2010 +0100
+++ b/test/tools/javac/diags/Example.java	Thu Jul 29 15:57:18 2010 +0100
@@ -502,11 +502,16 @@
         }
 
         static class MessageTracker extends JavacMessages {
-            static void preRegister(Context c, final Set<String> keys) {
+
+            MessageTracker(Context context) {
+                super(context);
+            }
+
+            static void preRegister(final Context c, final Set<String> keys) {
                 if (keys != null) {
                     c.put(JavacMessages.messagesKey, new Context.Factory<JavacMessages>() {
                         public JavacMessages make() {
-                            return new MessageTracker() {
+                            return new MessageTracker(c) {
                                 @Override
                                 public String getLocalizedString(Locale l, String key, Object... args) {
                                     keys.add(key);