[9] RFR: 8151182: HttpHeaders.allValues should return unmodifiable List as per JavaDoc

Claes Redestad claes.redestad at oracle.com
Fri Mar 4 13:29:19 UTC 2016


Hi,

even with this code, I think it'd still be possible to do 
map().get(name) to get to the underlying, mutable list.

It seems we have to ensure lists mapped in headers are made 
unmodifiable, something the method makeUnmodifiable seems to ensure, 
albeit in a not very thread-safe manner.

/Claes

On 2016-03-04 14:19, vaibhav x.choudhary wrote:
> Hi,
>
> Please review :-
>
> Review Link :- 
> http://cr.openjdk.java.net/~ntv/vaibhav/JDK8151182/webrev.00/
> Bug ID: https://bugs.openjdk.java.net/browse/JDK-8151182
>




More information about the core-libs-dev mailing list