Closed GladeDiviney closed 4 years ago
Given:
MediaCol col = new MediaCol(); col.setMediaType(Types.mediaType.of("envelope")) System.out.println(col) col.setMediaType(Types.mediaType.of("label")) System.out.println(col)
Expected:
MediaCol(media-type=envelope) MediaCol(media-type=label)
Received:
MediaCol(media-type=envelope) MediaCol(media-type=envelope)
Why:
The first println causes access to a lazy constructed list which freezes the internal values. Shouldn't do this.
println
Dup of #97
Given:
Expected:
Received:
Why:
The first
println
causes access to a lazy constructed list which freezes the internal values. Shouldn't do this.