changeset 14511:a92829ff8629

Change IllegalAccessException messages to align with IllegalAccessError messages
author alanb
date Fri, 27 Nov 2015 16:14:26 +0000
parents 85e0957f1d06
children 23fa3594a1d4
files src/java.base/share/classes/java/lang/reflect/Module.java src/java.base/share/classes/sun/reflect/Reflection.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/reflect/Module.java	Fri Nov 27 15:34:17 2015 +0000
+++ b/src/java.base/share/classes/java/lang/reflect/Module.java	Fri Nov 27 16:14:26 2015 +0000
@@ -1066,7 +1066,7 @@
             return "module " + name;
         } else {
             String id = Integer.toHexString(System.identityHashCode(this));
-            return "<unnamed module @" + id + ">";
+            return "unnamed module @" + id;
         }
     }
 
--- a/src/java.base/share/classes/sun/reflect/Reflection.java	Fri Nov 27 15:34:17 2015 +0000
+++ b/src/java.base/share/classes/sun/reflect/Reflection.java	Fri Nov 27 16:14:26 2015 +0000
@@ -121,7 +121,7 @@
                 if (!canRead) {
                     msg += m1 + " does not read " + m2;
                 } else {
-                    msg += m2 + " does not export package " + memberPackageName;
+                    msg += m2 + " does not export " + memberPackageName;
                     if (m2.isNamed()) msg += " to " + m1;
                 }