From f5cd147674c1de0ef860ac28867358d8cfbcd958 Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Wed, 22 Apr 2015 11:39:49 +0100 Subject: Tidy up Package and classloader comments After commit 31ae6d22605a0967d722f935bc3a8b868ada4917 Remove a TODO, improve a test and fix a comment. Also fixes a bug in Package demonstrated by the improved test. Bug: 20482259 Change-Id: I6b37413d7004ce85c99bb854e0ec41e5f8588250 --- libart/src/main/java/java/lang/ClassLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libart') diff --git a/libart/src/main/java/java/lang/ClassLoader.java b/libart/src/main/java/java/lang/ClassLoader.java index 9079dc4..dfbeeb5 100644 --- a/libart/src/main/java/java/lang/ClassLoader.java +++ b/libart/src/main/java/java/lang/ClassLoader.java @@ -646,8 +646,8 @@ public abstract class ClassLoader { throw new IllegalArgumentException("Package " + name + " already defined"); } - Package newPackage = new Package(name, specTitle, specVersion, specVendor, implTitle, - implVersion, implVendor, sealBase); + Package newPackage = new Package(this, name, specTitle, specVersion, specVendor, + implTitle, implVersion, implVendor, sealBase); packages.put(name, newPackage); -- cgit v1.1