harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
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 GMT
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);
 	}
 
 	/**



Mime
View raw message