You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Hans Schäfer (Jira)" <ji...@apache.org> on 2020/06/26 10:22:00 UTC
[jira] [Created] (WICKET-6799) Constructor of
org.apache.wicket.authorization.Action should not be public
Hans Schäfer created WICKET-6799:
------------------------------------
Summary: Constructor of org.apache.wicket.authorization.Action should not be public
Key: WICKET-6799
URL: https://issues.apache.org/jira/browse/WICKET-6799
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 8.7.0
Reporter: Hans Schäfer
Action is a subclass of EnumeratedType. Every instantiation of class Action leads to an extra instance that is stored in an ArrayList, that is statically kept.
This leads to an MemoryLeak, if a programmer uses "new Action(Action.RENDER))" instead of "Component.RENDER".
Please make the constructor of Action "protected".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)