wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WICKET-6335) tree.Node calls virtual methods from constructor
Date Sat, 11 Mar 2017 23:12:04 GMT
Mikhail Fursov created WICKET-6335:
--------------------------------------

             Summary: 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


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 it's state
before createContent() method call.

I believe the whole constructor of Node class can be safely moved to onInitializeMethod.



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

Mime
View raw message