[
https://issues.apache.org/jira/browse/WW-5031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16959925#comment-16959925
]
Markus Fischer commented on WW-5031:
------------------------------------
Yes, I can confirm: OGNL 3.1.25 resolves the issue.
Taken source code from here:
[https://github.com/jkuhnert/ognl/releases/tag/OGNL_3_1_25]
mvn clean install
Ignoring build failures:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (default) on project
ognl: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 -
.../Downloads/Software/ognl-OGNL_3_1_25/src/java/ognl/AccessibleObjectHandler.java:35:
warning: no description for @param
[ERROR] * @param accessibleObject
...
Taking ognl-3.1.25.jar and usinf it as a drop in replacement with Struts
2.5.20GA. No more illegal reflective access.
Thanks a lot!
Markus
> 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
(v8.3.4#803005)