Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 23359 invoked from network); 7 Feb 2007 12:08:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2007 12:08:40 -0000 Received: (qmail 29443 invoked by uid 500); 7 Feb 2007 12:08:44 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 29415 invoked by uid 500); 7 Feb 2007 12:08:44 -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 29406 invoked by uid 99); 7 Feb 2007 12:08:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 04:08:44 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 216.86.168.178 is neither permitted nor denied by domain of geir@pobox.com) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 04:08:34 -0800 Received: from [192.168.1.104] (unknown [67.86.14.213]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id C377451980 for ; Wed, 7 Feb 2007 07:08:05 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <45C9BF49.9000308@gmail.com> References: <67FA1FDB-756B-4710-8C0F-2BCDC8599C4E@pobox.com> <45C9BF49.9000308@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <21F476A3-A2B7-4186-B4D2-378F25D2E8B8@pobox.com> Content-Transfer-Encoding: 7bit From: "Geir Magnusson Jr." Subject: Re: [drlvm] The Return of the Hidden Classloader, Part II Date: Wed, 7 Feb 2007 07:07:56 -0500 To: dev@harmony.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 7, 2007, at 7:00 AM, Tim Ellison wrote: > Yang Paulex wrote: >> 2007/2/7, Geir Magnusson Jr. : >>> >>> This is an oldie but goodie.. >>> >>> We never solved the problem of how to hide non java*. packages that >>> are on the boot classpath from apps. We talked about a few >>> possibilities : >>> >>> 1) repackage them to a different package namespace >>> >>> 2) have a "hidden" classloader that only the system classloader >>> can use. >>> >>> I like #2. Has anyone looked into this or made any progress? Do >>> people think this is as important as I do? >> >> >> +1, the hidden classloader so far seems a better way to go, but >> for long >> term, I wish the JSR 277[1] or JSR 291[2] can be considered to >> address this >> kind of issue in general. >> >> [1] http://jcp.org/en/jsr/detail?id=277 >> [2] http://jcp.org/en/jsr/detail?id=291 > > True, but in the meantime it sounds like we need a tactical > solution to > the problems that Robin and Geir and others have been having. > > Rather than a hidden class loader we can filter the app classloader's > delegation to the bootclassloader so it only gets an opportunity to > load > API types. Let me have a quick play ... > Yes - that's the same concept, but I can see how that's going to be easier, because there's less machinery needed to figure out who is asking. If you don't mind, I'll take a wack. geir > Regards, > Tim