changeset 14514:ab5b6e7e9db6

ModuleReference hashCode no longer cached
author alanb
date Sun, 29 Nov 2015 10:55:13 +0000
parents a3683eec0092
children 5dbfdd461d03
files src/java.base/share/classes/java/lang/module/ModuleReference.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/module/ModuleReference.java	Sun Nov 29 07:55:25 2015 +0000
+++ b/src/java.base/share/classes/java/lang/module/ModuleReference.java	Sun Nov 29 10:55:13 2015 +0000
@@ -174,6 +174,7 @@
         int hc = hash;
         if (hc == 0) {
             hc = Objects.hash(descriptor, location, readerSupplier, hasher);
+            hash = hc;
         }
         return hc;
     }