Return-Path: Delivered-To: apmail-incubator-river-dev-archive@minotaur.apache.org Received: (qmail 9531 invoked from network); 14 Oct 2010 11:18:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Oct 2010 11:18:25 -0000 Received: (qmail 20939 invoked by uid 500); 14 Oct 2010 11:18:24 -0000 Delivered-To: apmail-incubator-river-dev-archive@incubator.apache.org Received: (qmail 20800 invoked by uid 500); 14 Oct 2010 11:18:22 -0000 Mailing-List: contact river-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: river-dev@incubator.apache.org Delivered-To: mailing list river-dev@incubator.apache.org Received: (qmail 20792 invoked by uid 99); 14 Oct 2010 11:18:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 11:18:21 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tvhobbs@googlemail.com designates 209.85.213.47 as permitted sender) Received: from [209.85.213.47] (HELO mail-yw0-f47.google.com) (209.85.213.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 11:18:15 +0000 Received: by ywl5 with SMTP id 5so2407919ywl.6 for ; Thu, 14 Oct 2010 04:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=49JZXVbKNGiZ4UxAD/XVY4+GhRvCbRB1kxyegOakZNY=; b=TBCl7GGRkmMonJfYXNeVI2vl023ezgNdroGg4eBeBjPmQnnwMZITnm50VUtqf0sLEk I5GRz8DX0X2/N7/SFArPqkRcqov5cP5dI7gg/bbaB9pSj6HkoRDQPkZni715b+cF/ZMR /0g2LS1y4cr6JA6FwtkNGno0DvnIBJ/0mIBl0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=LEPJJlLMxalZaQ+zqztZocHcxD3JGx1sm2LBwzXfJ24E4qGT6lrhKuLSx1I2hb2YrV SODEsRm9brYkiAYXJ0yCzzajXHwYWHiTfkI4se31O3gN79zTTloZcXzeWP0bZlD7A6du GzEwPtjxocOry37IJwUSslc+EzsjSa7NkS5CQ= MIME-Version: 1.0 Received: by 10.151.21.5 with SMTP id y5mr3130941ybi.240.1287055073477; Thu, 14 Oct 2010 04:17:53 -0700 (PDT) Received: by 10.151.82.9 with HTTP; Thu, 14 Oct 2010 04:17:53 -0700 (PDT) In-Reply-To: <4CB6DC86.6030801@acm.org> References: <77F1E32F67C8D5479858C0C7E93EB465030A825A@WAL-MAIL.global.avidww.com> <4CB4CADD.6050200@acm.org> <77F1E32F67C8D5479858C0C7E93EB465031270C2@WAL-MAIL.global.avidww.com> <4CB6DC86.6030801@acm.org> Date: Thu, 14 Oct 2010 12:17:53 +0100 Message-ID: Subject: Re: Java package names From: Tom Hobbs To: river-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org That's a good point. We can mark those classes as deprecated for the 2.1.3 release that Peter suggested could be done in November. The 3.0.0 release (sometime next year, I assume) can then do the actual deprecation. On Thu, Oct 14, 2010 at 11:33 AM, Patricia Shanahan wrote: > Do any of your unit tests test the Jini implementation, independent of th= e > rest of your own code? If so, please consider contributing them, so that > they can be run as part of the build tests. The more unit tests, from the > more different sources, the better. > > One way of minimizing pain during a package reorganization would be to go > through a step of having both old and new versions of the classes, with t= he > old versions unmodified except for being deprecated. Code using the class= es > could be modified gradually to remove references to deprecated classes. > > Patricia > > Christopher Dolan wrote: >> >> It turns out that I overstated my case, so I withdraw my negative >> vote. =A0I wrote my previous email before researching how extensively >> my code actually uses the com.sun.jini.* classes. =A0It's not nearly as >> bad as I thought -- I had misrecollected that some of the >> AbstractEntry subclasses were in com.sun -- and some of it is just >> bad code in my project. =A0Anecdotally, here are the classes my project >> currently uses (not including my unit tests, which dig deeper): >> >> import com.sun.jini.config.Config; import >> com.sun.jini.config.ConfigUtil; import >> com.sun.jini.landlord.Landlord; import >> com.sun.jini.landlord.LandlordLease; import >> com.sun.jini.landlord.LeaseFactory; import >> com.sun.jini.loader.pref.internal.PreferredResources; import >> com.sun.jini.logging.Levels; import >> com.sun.jini.thread.TaskManager.Task; import >> com.sun.jini.thread.TaskManager; >> >> I've been trying to refactor many of those out (like TaskManager), >> but some of them are hard to avoid, especially the landlord classes >> and Levels. =A0PreferredResources, for example, is in my custom >> PreferredClassLoader implementation. >> >> Chris >> >> -----Original Message----- From: Patricia Shanahan >> [mailto:pats@acm.org] Sent: Tuesday, October 12, 2010 3:54 PM To: >> river-dev@incubator.apache.org Subject: Re: Java package names >> >> This is troubling news. My proposed refactoring of TaskManager to >> enable performance tuning depends on the assumption that, as a >> com.sun.* class, it is only used within the project. >> >> In general, we will be severely limited in our ability to progress if >> we have to treat all public com.sun.* interfaces as external >> interfaces. >> >> Patricia >> >> >> Christopher Dolan wrote: >>> >>> I vote against such an incompatible change. =A0There are a lot of class= es >>> under there, for example com.sun.jini.thread.TaskManager, that are util= ity >>> code employed by downstream developers. =A0I think >>> all new code should go elsewhere if possible, but changing the >>> existing com.sun.jini packages would be hard on existing users. >>> >>> Chris >>> >>> >>> -----Original Message----- From: Benson Margulies >>> [mailto:bimargulies@gmail.com] Sent: Tuesday, October 12, 2010 >>> 11:51 AM To: general@incubator.apache.org; >>> river-dev@incubator.apache.org Subject: Java package names >>> >>> River imported packages of code from the original Sun grant under >>> the name 'com.sun.whatever'. >>> >>> How important is it to change that? >> > >