You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Mitth'raw'nuruodo (JIRA)" <ji...@apache.org> on 2017/09/06 02:06:00 UTC
[jira] [Commented] (WW-4849) ObjectFactory constructor signature
change breaks extensions
[ https://issues.apache.org/jira/browse/WW-4849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16154701#comment-16154701 ]
Mitth'raw'nuruodo commented on WW-4849:
---------------------------------------
It should be feasible to restore the no-argument constructor and the setter, but put some logic in the setter to ensure that a container can only be injected once. Will raise a pull request.
> ObjectFactory constructor signature change breaks extensions
> ------------------------------------------------------------
>
> Key: WW-4849
> URL: https://issues.apache.org/jira/browse/WW-4849
> Project: Struts 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.5.13
> Reporter: Mitth'raw'nuruodo
>
> Commit {{6f91d0776a545c911ca4f2875ed9976614711ef9}} changed the signature of the {{ObjectFactory}} constructor, breaking all classes that extend {{ObjectFactory}} (as per https://struts.apache.org/docs/objectfactory.html). This affects eg the [{{guice-servlet}} Struts plugin| https://github.com/google/guice/blob/master/extensions/struts2/src/com/google/inject/struts2/Struts2Factory.java].
> This was not listed on the [2.5.13 version notes|https://struts.apache.org/docs/version-notes-2513.html] as a breaking change, and breaking changes should preferably be avoided in critical security updates.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)