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.
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
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