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

Fail in finally block overrides the fail in catch block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR8
    • 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
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: