Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 18192 invoked from network); 21 Jan 2008 21:46:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jan 2008 21:46:31 -0000 Received: (qmail 90653 invoked by uid 500); 21 Jan 2008 21:46:21 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 90646 invoked by uid 500); 21 Jan 2008 21:46:21 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 90637 invoked by uid 99); 21 Jan 2008 21:46:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jan 2008 13:46:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of murray06@altheim.com designates 69.90.72.72 as permitted sender) Received: from [69.90.72.72] (HELO athens.clusterspan.net) (69.90.72.72) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jan 2008 21:46:06 +0000 Received: (qmail 32149 invoked from network); 21 Jan 2008 16:45:56 -0500 Received: from patrick183-w3.natlib.govt.nz (HELO ?10.44.43.192?) (192.122.171.18) by athens.clusterspan.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 21 Jan 2008 16:45:56 -0500 Message-ID: <4795128E.1090001@altheim.com> Date: Tue, 22 Jan 2008 10:45:50 +1300 From: Murray Altheim User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: jspwiki-dev@incubator.apache.org Subject: Re: Classmapping and final classes References: <2093C733-090B-4902-B2CD-03F3908D6EC7@mac.com> In-Reply-To: <2093C733-090B-4902-B2CD-03F3908D6EC7@mac.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Andrew Jaquith wrote: > Well, it *would* suggest that all classes not designed to be extended > should be made final, wouldn't it? *twinkle* > > I am not such a purist about that, really, although I do think it is a > good habit to get into. I think also that there's a distinction here between classes that are not designed to be extended but OTOH weren't designed *not* to be extended. Following the addition of the events code and the cascading properties feature to JSPWiki I've not needed to hack much of anything in order to either extend or embed JSPWiki. It's pretty functional in that regard already, especially since with have a very open API already (e.g., WikiEngine is very easily modified), we have filters and plugins, I mean, *really*, hacking security code for software designed for public web sites just seems like a Very Bad Idea, and unnecessary. If somebody has a truly custom application that can't be solved otherwise and looks to be a common use case that's one thing, but like Andrew I'd prefer to see a real use case demonstrated that can't be solved via the existing mechanisms. > In the meantime, for this particular case, I'd recommend that Simon file > an enhancement request or bug in JIRA, and folks with embedding > expertise (like Murray) can help figure out an approach that would work. > If we need to do a little design work for 2.8, great. And if that's > doesn't come soon enough for him, he's always got the option of patching > the code himself temporarily. Agreed. I can't see justification for a big, known security hole. Patching ClassUtil by removing several 'final' declarations should be the province of an individual hack (and a very simple one at that), not part of the core. IMO. Murray ........................................................................... Murray Altheim === = = http://www.altheim.com/murray/ = = === SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = = Boundless wind and moon - the eye within eyes, Inexhaustible heaven and earth - the light beyond light, The willow dark, the flower bright - ten thousand houses, Knock at any door - there's one who will respond. -- The Blue Cliff Record