You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Markus Fischer (JIRA)" <ji...@apache.org> on 2019/05/21 07:00:00 UTC

[jira] [Comment Edited] (WW-5031) OGNL: An illegal reflective access operation has occurred

    [ https://issues.apache.org/jira/browse/WW-5031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16844574#comment-16844574 ] 

Markus Fischer edited comment on WW-5031 at 5/21/19 6:59 AM:
-------------------------------------------------------------

Thanks Lukasz! I will ckeck and report back as soon as there is a pre view version of 2.5.21 available.


was (Author: flyingfischer):
Thank Lukasz! I will ckeck and report back as soon as there is a pre view version of 2.5.21 available.

> OGNL: An illegal reflective access operation has occurred
> ---------------------------------------------------------
>
>                 Key: WW-5031
>                 URL: https://issues.apache.org/jira/browse/WW-5031
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.5.20
>         Environment: Java 11 / Linux / test environment on eclipse / Tomcat 8.5
>            Reporter: Markus Fischer
>            Priority: Minor
>             Fix For: 2.5.21, 2.6
>
>
> Running Struts on Java 11 gives a new warning about illegal reflection, not present on Java 8:
> WARNING: An illegal reflective access operation has occurred
>  WARNING: Illegal reflective access by ognl.OgnlRuntime ([file:/.../workspace/.../.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/.../WEB-INF/lib/ognl-3.1.21.jar|file:///.../workspace/SC/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/.../WEB-INF/lib/ognl-3.1.21.jar]) to method java.util.HashMap$Node.getKey()
>  WARNING: Please consider reporting this to the maintainers of ognl.OgnlRuntime
>  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
> The warning appears after using the following tag in a JSP (name of properties changed):
> <s:select name="item" key="item.key" list="items" />
> The corresponding Action contains:
> private Map<Long, String> items = new LinkedHashMap<>();
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)