changeset 3369:056daf65e292

Update T6769027.java to use JavacMessages.add(ResourceBundleHelper)
author mchung
date Sun, 01 Nov 2015 20:05:55 -0800
parents 5ce41c5e35a8
children 755579d808dc
files test/tools/javac/Diagnostics/6769027/T6769027.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/Diagnostics/6769027/T6769027.java	Fri Oct 23 18:02:42 2015 -0700
+++ b/test/tools/javac/Diagnostics/6769027/T6769027.java	Sun Nov 01 20:05:55 2015 -0800
@@ -33,6 +33,7 @@
 // use /othervm to avoid locale issues
 
 import java.net.URI;
+import java.util.ResourceBundle;
 import java.util.regex.Matcher;
 import javax.tools.*;
 import com.sun.tools.javac.util.*;
@@ -373,7 +374,7 @@
         options.put("diagsIndentation", indentString);
         MyLog log = new MyLog(ctx);
         JavacMessages messages = JavacMessages.instance(ctx);
-        messages.add("tester");
+        messages.add(locale -> ResourceBundle.getBundle("tester", locale));
         JCDiagnostic.Factory diags = JCDiagnostic.Factory.instance(ctx);
         log.useSource(new MyFileObject("This is a source line"));
         JCDiagnostic d = diags.error(null, log.currentSource(),