6732461: broken message file for annotation processing
authormcimadamore
Fri, 08 Aug 2008 17:52:02 +0100
changeset 1047 106a9168f0d3
parent 1046 e395ce284cbf
child 1048 3ff5bb56c2e0
6732461: broken message file for annotation processing Summary: Regression in sqe test introduced in 6720185 Reviewed-by: jjg
langtools/src/share/classes/com/sun/tools/apt/util/Bark.java
--- a/langtools/src/share/classes/com/sun/tools/apt/util/Bark.java	Fri Aug 08 17:48:04 2008 +0100
+++ b/langtools/src/share/classes/com/sun/tools/apt/util/Bark.java	Fri Aug 08 17:52:02 2008 +0100
@@ -87,7 +87,7 @@
         context.put(barkKey, this);
 
         // register additional resource bundle for APT messages.
-        Messages aptMessages = new Messages(Messages.getDefaultBundle());
+        Messages aptMessages = Messages.instance(context);
         aptMessages.add("com.sun.tools.apt.resources.apt");
         aptDiags = new JCDiagnostic.Factory(aptMessages, "apt");