8243596: ModuleLayer::parents should return an unmodifiable list

2020-05-05 Thread Alan Bateman
This is an small oversight and inconsistency that crept in when the ModuleLayer was updated to support multiple parents. The list of parent layers returned by the parents() method should be specified (and implemented) to return an unmodifiable list. It currently returns a modifiable list.

Re: 8243596: ModuleLayer::parents should return an unmodifiable list

2020-05-05 Thread Mandy Chung
On 5/5/20 12:05 PM, Alan Bateman wrote: This is an small oversight and inconsistency that crept in when the ModuleLayer was updated to support multiple parents. The list of parent layers returned by the parents() method should be specified (and implemented) to return an unmodifiable list. It

RFR: JDK-8241602 jlink does not produce reproducible jimage files

2020-05-05 Thread Jim Laskey
This fix addresses the inconsistent ordering by jimage content by jlink from run to run. Bottom line, the implementer was using HashSet without defining hashcode/equals for the Set entry classes. webrev: http://cr.openjdk.java.net/~jlaskey/8241602/webrev-00