Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-6669

Fail in finally block overrides the fail in catch block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.1.0.DR2
    • CLI
    • None

      Command failures in catch block are not printed in case finally block fails as well.

      reproduce

      $ cat test.cli 
      try
      echo try block
      fail try
      
      catch 
      echo catch block
      fail catch
      
      finally 
      echo finally block
      fail finally
      end-try
      

      actual

      $ ./jboss-cli.sh -c --file=test.cli
      try block
      catch block
      finally block
      Unexpected command 'fail finally'. Type 'help --commands' for the list of supported commands.
      

      expected

      $ ./jboss-cli.sh -c --file=test.cli
      try block
      catch block
      Unexpected command 'fail catch'. Type 'help --commands' for the list of supported commands.
      finally block
      Unexpected command 'fail finally'. Type 'help --commands' for the list of supported commands.
      

              jdenise@redhat.com Jean Francois Denise
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: