[
https://issues.apache.org/jira/browse/WW-3994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13607012#comment-13607012
]
Hudson commented on WW-3994:
----------------------------
Integrated in Struts2-JDK6 #669 (See
[https://builds.apache.org/job/Struts2-JDK6/669/])
WW-3994 Uses constructor injections instead property injections to avoid
NPE (Revision 1458543)
Result = SUCCESS
lukaszlenart :
Files :
*
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/CompositeActionMapper.java
*
/struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/mapper/CompositeActionMapperTest.java
> CompositeActionMapper actionMappers injected before container, leading to NPE
> on Oracle JRE 1.7.x
> -------------------------------------------------------------------------------------------------
>
> Key: WW-3994
> URL: https://issues.apache.org/jira/browse/WW-3994
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.8
> Environment: Oracle JRE 1.7.0_17, Struts 2.3.8, Tomcat 7.0.12
> Reporter: Daniel Baldes
> Assignee: Lukasz Lenart
> Fix For: 2.3.13
>
>
> When I try to use CompositeActionMapper on Oracle JRE 1.7.0, the
> ContainerImpl tries to first inject the actionMappers using
> CompositeActionMapper.setActionMappers(String list), before the container is
> injected in setContainer(Container container). This leads to a
> NullPointerException.
> This did not happen on Oracle JRE 1.6.0.
> The apparent cause is that in com.opensymphony.xwork2.inject.ContainerImpl,
> line 90, the method injectors are created in the order in which the methods
> are returned by Class.getDeclaredMethods(), which is undefined according to
> the documentation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira