Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 58560 invoked from network); 15 Nov 2007 19:39:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2007 19:39:24 -0000 Received: (qmail 65691 invoked by uid 500); 15 Nov 2007 19:39:10 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 65670 invoked by uid 500); 15 Nov 2007 19:39:10 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 65661 invoked by uid 99); 15 Nov 2007 19:39:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 11:39:10 -0800 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 195.212.29.151 is neither permitted nor denied by domain of mark.hindess@googlemail.com) Received: from [195.212.29.151] (HELO mtagate2.de.ibm.com) (195.212.29.151) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 19:38:58 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate2.de.ibm.com (8.13.8/8.13.8) with ESMTP id lAFJcoiL102744 for ; Thu, 15 Nov 2007 19:38:50 GMT Received: from d12av01.megacenter.de.ibm.com (d12av01.megacenter.de.ibm.com [9.149.165.212]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.6) with ESMTP id lAFJcohl2207778 for ; Thu, 15 Nov 2007 20:38:50 +0100 Received: from d12av01.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av01.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id lAFJcoxD020618 for ; Thu, 15 Nov 2007 20:38:50 +0100 Received: from anaheim.local (sig-9-145-123-18.uk.ibm.com [9.145.123.18]) by d12av01.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id lAFJcoAK020612 for ; Thu, 15 Nov 2007 20:38:50 +0100 Message-Id: <200711151938.lAFJcoAK020612@d12av01.megacenter.de.ibm.com> X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-10) with nmh-1.1 In-reply-to: <3b3f27c60711150722x2a909fa0x90fb16cb62eb45c@mail.gmail.com> References: <4d0b24970711150116g32e1e925hfe51f3a3236865ad@mail.gmail.com> <3b3f27c60711150722x2a909fa0x90fb16cb62eb45c@mail.gmail.com> Comments: In-reply-to "Nathan Beyer" message dated "Thu, 15 Nov 2007 10:22:00 -0500." From: Mark Hindess To: dev@harmony.apache.org Subject: Re: [classlib][misc] Could we make ObjectAccessor.getInstance() public? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 15 Nov 2007 19:38:50 +0000 X-Virus-Checked: Checked by ClamAV on apache.org On 15 November 2007 at 10:22, "Nathan Beyer" wrote: > This is a class in a org.apache.harmony package. By general > convention, these classes are for implementation use within Harmony > only. At some point, these packages will be unavailable at runtime > (via OSGi or the like restrictions). > > There may be exceptions to this rule, such as where Harmony will > provide plug-in points, etc. However, I don't believe this is falls > into that category. There are a number of reasons, but most of them > fall under the fact that creating instances like this would circumvent > many of basic tenants and assumptions of the class library and > runtime. +1 I don't think it would be wise to start having exceptions to this. The fact is there is a standard way to do this (JNI AllocObject) so user code should use this rather than doing something that is harmony-specific. Regards, Mark. > On Nov 15, 2007 4:16 AM, Andrew Zhang wrote: > > Hi, > > > > I find some methods of ObjectAccessor are useful for some existing > > applications and potential users, e.g, Object allocateObject(Class). Could > > we make getInstance() public so that users can benefit from these utility > > methods? Thanks! > > > > -- > > Best regards, > > Andrew Zhang > > > > http://zhanghuangzhu.blogspot.com/ > > >