You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2017/03/12 18:40:04 UTC

[jira] [Resolved] (WICKET-6335) tree.Node calls virtual methods from constructor

     [ https://issues.apache.org/jira/browse/WICKET-6335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sven Meier resolved WICKET-6335.
--------------------------------
       Resolution: Fixed
         Assignee: Sven Meier
    Fix Version/s: 8.0.0-M5

Thanks!

> tree.Node calls virtual methods from constructor
> ------------------------------------------------
>
>                 Key: WICKET-6335
>                 URL: https://issues.apache.org/jira/browse/WICKET-6335
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 8.0.0-M4
>            Reporter: Mikhail Fursov
>            Assignee: Sven Meier
>             Fix For: 8.0.0-M5
>
>
> Class org.apache.wicket.extensions.markup.html.repeater.tree.Node calls pure virtual method createContent() from constructor.
> Because of this call a class that implements Node has no chance to initilalize itself before createContent() method is called.
> I believe the whole constructor of Node class can be safely moved to onInitialize method.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)