On 21/04/2015 11:20, Chris Hegarty wrote:
On 15 Apr 2015, at 16:43, Paul Sandoz <paul.san...@oracle.com> wrote:
On Apr 15, 2015, at 4:35 PM, Chris Hegarty <chris.hega...@oracle.com> wrote:
I marginally prefer using flatMap rather than map/filter e.g. change getHandler to return
Stream< URLStreamHandler> and change the last line to be "return
Stream.ofNullable(handle). Up to you.
That's better. For completeness, the updated webrev:
http://cr.openjdk.java.net/~chegar/8075139/webrev.03/
Argh! The launcher is now falling over with "Error occurred during
initialization of VM”, in cases where a custom policy file contains a URL [*].
I’ll revert back to the version pre streams and lambda.
http://cr.openjdk.java.net/~chegar/8075139/webrev.01/
This seems fine for now.
Peter Levart was looking into some of these initialization issues
recently on mlvm-dev [1]. Issues can show up in many ways and would be
good to solve some of these in JDK 9 if we can.
-Alan
[1] http://mail.openjdk.java.net/pipermail/mlvm-dev/2015-March/006386.html