Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8209332

[TEST] test/jdk/com/sun/jdi/CatchPatternTest.sh is incorrect

XMLWordPrintable

    • svc
    • 9
    • b14
    • generic
    • generic

        test/jdk/com/sun/jdi/CatchPatternTest.sh tests runs jdb and debugee and executes:
           ignore uncaught java.lang.Throwable
           catch all java.lang.Il*
           catch all java.lang.Ind*
           cont
           cont
           cont
           ignore all java.lang.I*
           cont
        It supposes that "ignore all java.lang.I*" reverts "catch all java.lang.Il*"/"catch all java.lang.Ind*"
        But actually jdb replies:
        Not found: all java.lang.I*
        Usage: ignore [uncaught|caught|all] <class id>|<class pattern>
        main[1] >

        so later exceptions are not ignored and jdb stops at the next exception:
        Exception occurred: java.lang.IllegalArgumentException (to be caught at: CatchPatternTestTarg.loop(), line=21 bci=15)"thread=main", CatchPatternTestTarg.bark(), line=6 bci=53
        6 throw new IllegalArgumentException("IllegalArgumentException");
        main[1]

        At the end the test exits jdb by "quit" command and this masks that actually test in not finished completely.

              amenkov Alex Menkov
              amenkov Alex Menkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: