8178077: jshell tool: crash on ctrl-up or ctrl-down

When looking up a private method, using the ConsoleReader.class, instead of getClass(), which may return a subclass.

Reviewed-by: rfield
1 file changed