RFR: JDK-8191636: [Windows] jshell tool: Wrong character in /env class-path command crashes jshell

Jan Lahoda jan.lahoda at oracle.com
Mon Dec 11 18:34:25 UTC 2017


Hi,

Doing this in JShell on Windows:
jshell> /env --class-path ?

Leads to a crash, as Paths.get(...) will throw InvalidPathException on 
Windows for path '?'. The proposed fix is to handle/catch the exception.

Bug: https://bugs.openjdk.java.net/browse/JDK-8191636
Webrev: http://cr.openjdk.java.net/~jlahoda/8191636/webrev.00/

How does it look?

Thanks,
     Jan


More information about the kulla-dev mailing list