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)