Skip to content

Commit

Permalink
WW-4266 Adds support for IBM JVM to reload resources
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Feb 28, 2014
1 parent 5d0cf8b commit 9c5177c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,14 @@ private static void reloadBundles(Map<String, Object> context) {
}
if (!reloaded) {
bundlesMap.clear();
clearMap(ResourceBundle.class, null, "cacheList");
try {
clearMap(ResourceBundle.class, null, "cacheList");
} catch (NoSuchFieldException e) {
// happens in IBM JVM, that has a different ResourceBundle impl
// it has a 'cache' member
clearMap(ResourceBundle.class, null, "cache");
}

// now, for the true and utter hack, if we're running in tomcat, clear
// it's class loader resource cache as well.
clearTomcatCache();
Expand Down

0 comments on commit 9c5177c

Please sign in to comment.