jshell Stacktraces without Jigsaw modules
Robert Field
robert.field at oracle.com
Mon Sep 26 17:20:25 UTC 2016
Good point. I've created:
https://bugs.openjdk.java.net/browse/JDK-8166726
Thanks,
Robert
On 09/25/16 13:14, Bernd Eckenfels wrote:
> in the Jigsaw JDK a StackTrace Element contains the module/version as
> source information. This is however not printed in jshell's stack
> printing. Is this considered?
>
>
> jshell> InputStream is = new FileInputStream("bla");
> | java.io.FileNotFoundException thrown: bla (Das System kann die angegebene Datei nicht finden)
> | at FileInputStream.open0 (Native Method)
> | at FileInputStream.open (FileInputStream.java:195)
> | at FileInputStream.<init> (FileInputStream.java:138)
> | at FileInputStream.<init> (FileInputStream.java:93)
> | at (#10:1)
>
> jshell> try { InputStream is = new FileInputStream("bla"); } catch(Exception e) { e.printStackTrace(); }
> java.io.FileNotFoundException: bla (Das System kann die angegebene Datei nicht finden)
> at java.io.FileInputStream.open0(java.base at 9-ea/Native Method)
> at java.io.FileInputStream.open(java.base at 9-ea/FileInputStream.java:195)
> at java.io.FileInputStream.<init>(java.base at 9-ea/FileInputStream.java:138)
> at java.io.FileInputStream.<init>(java.base at 9-ea/FileInputStream.java:93)
> at REPL.$JShell$18.do_it$($JShell$18.java:9)
> ...
More information about the kulla-dev
mailing list