Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v6]

2021-04-08 Thread Michael McMahon
On Wed, 7 Apr 2021 17:07:44 GMT, Daniel Fuchs wrote: >> Julia Boes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> assign unmodHeaders instead of original headers > > Marked as reviewed by dfuchs (Reviewer). Latest changes LGTM. --

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v6]

2021-04-07 Thread Daniel Fuchs
On Wed, 7 Apr 2021 17:02:28 GMT, Julia Boes wrote: >> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable >> by wrapping it in an unmodifiable view. > > Julia Boes has updated the pull request incrementally with one additional > commit since the last revision: > > as

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v6]

2021-04-07 Thread Julia Boes
> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable > by wrapping it in an unmodifiable view. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: assign unmodHeaders instead of original headers - Ch

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v5]

2021-04-07 Thread Daniel Fuchs
On Wed, 7 Apr 2021 13:28:32 GMT, Julia Boes wrote: >> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable >> by wrapping it in an unmodifiable view. > > Julia Boes has updated the pull request with a new target base due to a merge > or a rebase. The incremental webrev e

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v3]

2021-04-07 Thread Julia Boes
On Tue, 6 Apr 2021 13:12:46 GMT, Julia Boes wrote: >> LGTM > > I included a null check in the constructor to account for null values of > `List`, which `Headers` allows. Fixed the indentation. > > Testing: Tier 1-3 all clear. It turns out I wasn't right in the last commit. The null check is no

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v5]

2021-04-07 Thread Julia Boes
> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable > by wrapping it in an unmodifiable view. Julia Boes has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebas

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v4]

2021-04-06 Thread Daniel Fuchs
On Tue, 6 Apr 2021 13:10:59 GMT, Julia Boes wrote: >> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable >> by wrapping it in an unmodifiable view. > > Julia Boes has updated the pull request with a new target base due to a merge > or a rebase. The incremental webrev e

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v3]

2021-04-06 Thread Julia Boes
On Thu, 1 Apr 2021 14:08:47 GMT, Michael McMahon wrote: >> Julia Boes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> move constructor call in ExchangeImpl and fix indentation > > LGTM I included a null check in the constructor to accou

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v4]

2021-04-06 Thread Julia Boes
> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable > by wrapping it in an unmodifiable view. Julia Boes has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebas

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v3]

2021-04-01 Thread Michael McMahon
On Wed, 31 Mar 2021 10:51:40 GMT, Julia Boes wrote: >> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable >> by wrapping it in an unmodifiable view. > > Julia Boes has updated the pull request incrementally with one additional > commit since the last revision: > > m

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v3]

2021-03-31 Thread Daniel Fuchs
On Wed, 31 Mar 2021 10:51:40 GMT, Julia Boes wrote: >> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable >> by wrapping it in an unmodifiable view. > > Julia Boes has updated the pull request incrementally with one additional > commit since the last revision: > > m

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v3]

2021-03-31 Thread Julia Boes
> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable > by wrapping it in an unmodifiable view. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: move constructor call in ExchangeImpl and fix indentation ---

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v2]

2021-03-29 Thread Michael McMahon
On Mon, 29 Mar 2021 09:09:00 GMT, Julia Boes wrote: >> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable >> by wrapping it in an unmodifiable view. > > Julia Boes has updated the pull request incrementally with two additional > commits since the last revision: > > -

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v2]

2021-03-29 Thread Daniel Fuchs
On Tue, 16 Mar 2021 14:35:12 GMT, Michael McMahon wrote: >> Julia Boes has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - wrap List with unmodifiable map and update test >> - remove map wrapping > > Changes requested by michaelm (Reviewe

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v2]

2021-03-29 Thread Julia Boes
On Mon, 22 Mar 2021 16:41:10 GMT, Daniel Fuchs wrote: >> Actually, I just noticed that the `List`s are still modifiable. The >> constructor might have to create an intermediate `Map>` >> with unmodifiable Lists and then you create an unmodifiable Map from that. >> >> As regards the comment ab

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v2]

2021-03-29 Thread Julia Boes
On Mon, 22 Mar 2021 16:36:55 GMT, Daniel Fuchs wrote: >> I guess this presumes that no reference to `headers` escapes? Can that be >> assumed? > > Yes - it's private - and that wasn't a problem before - was it? The problem > was the put method that still put things into the map - and that will

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable [v2]

2021-03-29 Thread Julia Boes
> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable > by wrapping it in an unmodifiable view. Julia Boes has updated the pull request incrementally with two additional commits since the last revision: - wrap List with unmodifiable map and update test - remove map wr

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable

2021-03-22 Thread Daniel Fuchs
On Mon, 22 Mar 2021 16:25:24 GMT, Michael McMahon wrote: >> Headers normalizes the key before any get/getFirst, for example Headers line >> 131: >> >> `public List get(Object key) { >> return map.get(normalize((String)key)); >> }` >> >> I assume we want to maintain this beh

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable

2021-03-22 Thread Daniel Fuchs
On Mon, 22 Mar 2021 16:30:10 GMT, Michael McMahon wrote: >> src/jdk.httpserver/share/classes/sun/net/httpserver/UnmodifiableHeaders.java >> line 34: >> >>> 32: public class UnmodifiableHeaders extends Headers { >>> 33: >>> 34: private Map> map; >> >> How about: >> >> private final He

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable

2021-03-22 Thread Daniel Fuchs
On Tue, 16 Mar 2021 14:19:09 GMT, Julia Boes wrote: > The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable > by wrapping it in an unmodifiable view. src/jdk.httpserver/share/classes/sun/net/httpserver/UnmodifiableHeaders.java line 34: > 32: public class UnmodifiableHea

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable

2021-03-22 Thread Michael McMahon
On Mon, 22 Mar 2021 11:56:58 GMT, Julia Boes wrote: >> src/jdk.httpserver/share/classes/sun/net/httpserver/UnmodifiableHeaders.java >> line 60: >> >>> 58: map.forEach((k, v) -> headers.add(k, v.get(0))); >>> 59: return headers.getFirst(key); >>> 60: } >> >> Shou

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable

2021-03-22 Thread Michael McMahon
On Mon, 22 Mar 2021 16:23:27 GMT, Daniel Fuchs wrote: >> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable >> by wrapping it in an unmodifiable view. > > src/jdk.httpserver/share/classes/sun/net/httpserver/UnmodifiableHeaders.java > line 34: > >> 32: public class Unm

RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable

2021-03-22 Thread Julia Boes
The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable by wrapping it in an unmodifiable view. - Commit messages: - fix imports - Merge branch 'master' into 8263506 - fix UnmodifiableHeaders impl - add initial test Changes: https://git.openjdk.java.net/jdk/

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable

2021-03-22 Thread Julia Boes
On Tue, 16 Mar 2021 14:30:39 GMT, Michael McMahon wrote: >> The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable >> by wrapping it in an unmodifiable view. > > src/jdk.httpserver/share/classes/sun/net/httpserver/UnmodifiableHeaders.java > line 60: > >> 58: m

Re: RFR: 8263506: Make sun.net.httpserver.UnmodifiableHeaders unmodifiable

2021-03-22 Thread Michael McMahon
On Tue, 16 Mar 2021 14:19:09 GMT, Julia Boes wrote: > The fix makes the map in sun.net.httpserver.UnmodifiableHeaders unmodifiable > by wrapping it in an unmodifiable view. Changes requested by michaelm (Reviewer). src/jdk.httpserver/share/classes/sun/net/httpserver/UnmodifiableHeaders.java l