Re: RFR 8164934: Optional.map() javadoc code example is incorrect

2016-11-09 Thread Chris Hegarty
On 8 Nov 2016, at 23:52, Paul Sandoz wrote: > > Hi, > > Please review an update to the api note of Optional.map() which > embarrassingly contained erroneous code (labouring under the misapprehension > that exception transparency is supported!). > > I tweaked the example to refer to a Stream w

Re: RFR 8164934: Optional.map() javadoc code example is incorrect

2016-11-08 Thread Remi Forax
Looks good. At some point we should provide a way to de-activate checked exception in Java ! I vote for 10. I know it's a bold move but seriously checked exception are fine as feature until you try to compose it with another feature. This is a perfect example of why checked exceptions are a bad

RFR 8164934: Optional.map() javadoc code example is incorrect

2016-11-08 Thread Paul Sandoz
Hi, Please review an update to the api note of Optional.map() which embarrassingly contained erroneous code (labouring under the misapprehension that exception transparency is supported!). I tweaked the example to refer to a Stream where a URI is transformed into a Path. Paul. diff -r df7e62