wt., 1 gru 2020 o 09:02 Greg Huber <gregh3...@gmail.com> napisał(a):
>
> AbstractLocalizedTextProvider
>
>
> clearMap(ResourceBundle.class, null, "cacheList");
>
> private void clearMap(Class cl, Object obj, String name)
>              throws NoSuchFieldException, IllegalAccessException,
> NoSuchMethodException, InvocationTargetException {
>
>          Field field = cl.getDeclaredField(name);
>          field.setAccessible(true);
>
>          Object cache = field.get(obj);
>
>          synchronized (cache) {
>              Class ccl = cache.getClass();
>              Method clearMethod = ccl.getMethod("clear");
>              clearMethod.invoke(cache);
>          }
>      }
>
>
> When it executes the line
>
> field.setAccessible(true);
>
> is when it generates the warning
>
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> com.opensymphony.xwork2.util.AbstractLocalizedTextProvider
> (file:/home/ghuber/git/events/events/src/main/webapp/WEB-INF/classes/)
> to field java.util.ResourceBundle.cacheList
> WARNING: Please consider reporting this to the maintainers of
> com.opensymphony.xwork2.util.AbstractLocalizedTextProvider
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release

but this happens only in devMode? or when "struts.i18n.reload" is set to true?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to