RFR: 8275509: ModuleDescriptor.hashCode isn't reproducible across builds
Alan Bateman
alanb at openjdk.java.net
Thu Nov 4 14:12:11 UTC 2021
On Thu, 4 Nov 2021 05:21:25 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> That's a good point and thank you for explaining that part. So to address that, how about not leaving them out, but instead of using `Enum#ordinal()` for the hashCode generation, we use `Enum#name()` which would translate to a `String#hashCode()`.
Moving to the hashCode of the names of the values is good.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6078
More information about the core-libs-dev
mailing list