Return-Path: X-Original-To: apmail-wicket-dev-archive@www.apache.org Delivered-To: apmail-wicket-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E94D59285 for ; Tue, 31 Jan 2012 17:39:07 +0000 (UTC) Received: (qmail 62460 invoked by uid 500); 31 Jan 2012 17:39:07 -0000 Delivered-To: apmail-wicket-dev-archive@wicket.apache.org Received: (qmail 62392 invoked by uid 500); 31 Jan 2012 17:39:06 -0000 Mailing-List: contact dev-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@wicket.apache.org Delivered-To: mailing list dev@wicket.apache.org Received: (qmail 62384 invoked by uid 99); 31 Jan 2012 17:39:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2012 17:39:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martijn.dashorst@gmail.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gy0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2012 17:39:01 +0000 Received: by ghrr20 with SMTP id r20so192944ghr.32 for ; Tue, 31 Jan 2012 09:38:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=q7dsNsx42X1J/+kEOkObOeTTQ+fSadmITfAQXA83AOY=; b=g0FraVa8WiEeKqiXNgoefrOzu+41bKGiNKuD5fwHsdBGScbtoVGYT6aLcUiYsdPGM2 54Fr9IkkRsv2XYM48LTSikLYD37EC7tpOvn0ZXvnux/wpdRNafq65hRHUEmhDvhBHQ3o hbOnCZ4G6G6whuDs6U1PeMJAfc0WCFe+2axuk= Received: by 10.100.84.9 with SMTP id h9mr11120174anb.12.1328031520929; Tue, 31 Jan 2012 09:38:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.13.1 with HTTP; Tue, 31 Jan 2012 09:38:20 -0800 (PST) In-Reply-To: References: From: Martijn Dashorst Date: Tue, 31 Jan 2012 18:38:20 +0100 Message-ID: Subject: Re: Deprecate Component#onMarkupAttached() ? To: dev@wicket.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jan 31, 2012 at 5:44 PM, Martin Grigorov wrote: > Now I think Component#onMarkupAttached() becomes obsolete. > #onInitialize() serves the same purpose, > Should we deprecate it in 1.5.x and remove it in 6.0 ? AFAIK the proper way of deprecating would be to deprecate in 6.0 and remove in 7.0, if we are going to utilize semver. That said, 1.5 doesn't use semver, #onMarkupAttached() seems like a method that is not often overridden in user code. In my workspace with about 1M lines of code, 1k pages and 10k Java files there is only one component that overrides the onMarkupAttached method: org.apache.wicket.MarkupContainer. So +1 to deprecate 1.5.x and remove in 6.0 Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com