It occurred to me that jshell is yet another area where we might want to
turn better NPE messages on by default.
Maurizio
On 19/11/2019 09:24, Maurizio Cimadamore wrote:
I like this suggestion a lot.
Maurizio
On 19/11/2019 08:34, Gunnar Morling wrote:
Hi,
I've been exploring the new helpful NPE feature a bit.
It's a very welcomed improvement, but I noticed one potential usability
issue in conjunction with the single source file mode (JEP 330): as
debug
info is missing in that case, e.g. local variables are rendered as
"<local1>" in the exception message. Single source file mode also
doesn't
let me specify the "-g:vars" option I could use with javac for adding
the
debugging info.
Perhaps single source file mode should add debug information by
default to
prevent this issue?
Thanks,
--Gunnar