Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 63039 invoked from network); 10 Jun 2006 18:02:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jun 2006 18:02:07 -0000 Received: (qmail 36049 invoked by uid 500); 10 Jun 2006 18:02:07 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 36001 invoked by uid 500); 10 Jun 2006 18:02:06 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 35989 invoked by uid 99); 10 Jun 2006 18:02:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jun 2006 11:02:06 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jun 2006 11:02:06 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 3808D1A983A; Sat, 10 Jun 2006 11:01:46 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r413338 - /incubator/harmony/enhanced/classlibadapter/trunk/modules/kernel/src/main/java/java/lang/Package.java Date: Sat, 10 Jun 2006 18:01:45 -0000 To: harmony-commits@incubator.apache.org From: archie@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060610180146.3808D1A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: archie Date: Sat Jun 10 11:01:45 2006 New Revision: 413338 URL: http://svn.apache.org/viewvc?rev=413338&view=rev Log: Apply patch from HARMONY-572. Modified: incubator/harmony/enhanced/classlibadapter/trunk/modules/kernel/src/main/java/java/lang/Package.java Modified: incubator/harmony/enhanced/classlibadapter/trunk/modules/kernel/src/main/java/java/lang/Package.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlibadapter/trunk/modules/kernel/src/main/java/java/lang/Package.java?rev=413338&r1=413337&r2=413338&view=diff ============================================================================== --- incubator/harmony/enhanced/classlibadapter/trunk/modules/kernel/src/main/java/java/lang/Package.java (original) +++ incubator/harmony/enhanced/classlibadapter/trunk/modules/kernel/src/main/java/java/lang/Package.java Sat Jun 10 11:01:45 2006 @@ -36,7 +36,7 @@ private final String name, specTitle, specVersion, specVendor, implTitle, implVersion, implVendor; - //private final URL sealBase; + private final URL sealBase; Package(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) { @@ -47,7 +47,7 @@ this.implTitle = implTitle; this.implVersion = implVersion; this.implVendor = implVendor; - //this.sealBase = sealBase; + this.sealBase = sealBase; } /** @@ -185,7 +185,7 @@ * @return true if this package is sealed, false otherwise */ public boolean isSealed() { - throw new RuntimeException("not implemented"); + return sealBase != null; } /** @@ -197,9 +197,7 @@ * @return true if this package is sealed, false otherwise */ public boolean isSealed(URL url) { - //fixit -- always returning "false" is good enough for simple "hello world" application - //return false; - throw new RuntimeException("not implemented"); + return sealBase != null && sealBase.sameFile(url); } /**