Issue with reloading resourcebundle
I am using the following code to reload the resourcebundle but still facing problems. Can anyone let me know what the issue is in the following
Class klass = ResourceBundle.class;
Field field = klass.getDeclaredField("cacheList");
field.setAccessible(true);
sun.misc.SoftCache cache = (sun.misc.SoftCache)field.get(null);
cache.clear();
field.setAccessible(false);
After performing the above if i call
ResourceBundle rb = ResourceBundle.getBundle("com.base.headerfilenames");
the new keys are not refected.
Any help would be appreciated.
headerfilenames is a .properties file
Message was edited by:
ssv45324

