jshell Stacktraces without Jigsaw modules
Bernd Eckenfels
ecki at zusammenkunft.net
Sun Sep 25 20:14:54 UTC 2016
Hello,
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