# HG changeset patch # User mcimadamore # Date 1224087835 -3600 # Node ID 4b54f7c2d3db0d23a6e1aa3c010c2f3efd66483b # Parent 19c0851667ca2e5053c516fc49cd7ee85617a1cd 6759682: APT: compiler message file broken after refactoring of com.sun.tools.javac.util.Message Summary: JavacMessages should refresh its own bundle cache when a new resource bundle is added by APT Reviewed-by: jjg diff -r 19c0851667ca -r 4b54f7c2d3db langtools/src/share/classes/com/sun/tools/javac/util/JavacMessages.java --- a/langtools/src/share/classes/com/sun/tools/javac/util/JavacMessages.java Wed Oct 15 08:07:59 2008 -0700 +++ b/langtools/src/share/classes/com/sun/tools/javac/util/JavacMessages.java Wed Oct 15 17:23:55 2008 +0100 @@ -99,10 +99,11 @@ bundleNames = bundleNames.prepend(bundleName); if (!bundleCache.isEmpty()) bundleCache.clear(); + currentBundles = null; } public List getBundles(Locale locale) { - if (locale == currentLocale) + if (locale == currentLocale && currentBundles != null) return currentBundles; SoftReference> bundles = bundleCache.get(locale); List bundleList = bundles == null ? null : bundles.get();