changeset 14804:bfe6c859bc80

Fix comment on Module.module
author alanb
date Fri, 18 Dec 2015 12:21:46 +0000
parents 387f9070f3bf
children 4ec6952f50e1
files src/java.base/share/classes/java/lang/Class.java src/java.base/share/classes/jdk/internal/misc/BootLoader.java
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Class.java	Fri Dec 18 12:11:06 2015 +0000
+++ b/src/java.base/share/classes/java/lang/Class.java	Fri Dec 18 12:21:46 2015 +0000
@@ -811,7 +811,8 @@
         return module;
     }
 
-    private transient Module module;  // set by VM or lazily by getModule
+    // set by VM, will eventually move to a helper type with module
+    private transient Module module;
 
     // Initialized in JVM not by private constructor
     // This field is filtered from reflection access, i.e. getDeclaredField
--- a/src/java.base/share/classes/jdk/internal/misc/BootLoader.java	Fri Dec 18 12:11:06 2015 +0000
+++ b/src/java.base/share/classes/jdk/internal/misc/BootLoader.java	Fri Dec 18 12:21:46 2015 +0000
@@ -131,8 +131,8 @@
      * if the package has not been defined.
      */
     public static Package getDefinedPackage(String pn) {
-        String found = getSystemPackageLocation(pn.replace('.', '/'));
-        if (found == null) {
+        String pkg = getSystemPackageLocation(pn.replace('.', '/'));
+        if (pkg == null) {
             return null;
         }
         return ClassLoaders.bootLoader().definePackage(pn);