You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Kees van Dieren (JIRA)" <ji...@apache.org> on 2018/03/05 13:09:00 UTC
[jira] [Created] (WICKET-6543) onConfigure() Javadoc claims
Overrides must call super, but there is no check to enforce it
Kees van Dieren created WICKET-6543:
---------------------------------------
Summary: onConfigure() Javadoc claims Overrides must call super, but there is no check to enforce it
Key: WICKET-6543
URL: https://issues.apache.org/jira/browse/WICKET-6543
Project: Wicket
Issue Type: Bug
Affects Versions: 8.0.0-M8
Reporter: Kees van Dieren
[https://github.com/apache/wicket/blob/9e42a9548adb0da540e4e87d491f5824e778537e/wicket-core/src/main/java/org/apache/wicket/Component.java#L795] claims that:
{{Overrides must call \{@code super.onConfigure()}, usually before any other code}}
However Component#onConfigure() does not set a flag (like onInitialize() does) nor does configure() check that its own onConfigure() gets called.
As user of the framework, I would expect consistent behavior between onConfigure() and onInitialize().
It might be a good idea to fix this before Wicket 8.0.0, as changing this behavior is a breaking change.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)