-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
tiger
-
generic
-
generic
Name: tb29552 Date: 12/04/2002
Entering a 'catch caught' command with no class id or class pattern
throws a NullPointerException:
% jdb HelloWorld
Initializing jdb ...
> catch caught
Internal exception:
java.lang.NullPointerException
at
com.sun.tools.example.debug.tty.PatternReferenceTypeSpec.<init>(PatternReferenceTypeSpec.java:49)
at
com.sun.tools.example.debug.tty.EventRequestSpecList.createExceptionCatch(EventRequestSpecList.java:139)
at
com.sun.tools.example.debug.tty.Commands.parseExceptionSpec(Commands.java:788)
at
com.sun.tools.example.debug.tty.Commands.commandCatchException(Commands.java:802)
at com.sun.tools.example.debug.tty.TTY.executeCommand(TTY.java:271)
at com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:539)
at com.sun.tools.example.debug.tty.TTY.main(TTY.java:850)
It should print a usage message:
> catch caught
Usage: catch [uncaught|caught|all] <class id>|<class pattern>
======================================================================
- relates to
-
JDK-4749692 REGRESSION: jdb rejects the syntax catch java.lang.IndexOutOfBoundsException
-
- Resolved
-