[jboss-jira] [JBoss JIRA] (WFCORE-2717) try-catch block doesn't work if catch block doesn't contains anything

Ingo Weiss (JIRA) issues at jboss.org
Mon Apr 24 11:41:02 EDT 2017


     [ https://issues.jboss.org/browse/WFCORE-2717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ingo Weiss moved JBEAP-10507 to WFCORE-2717:
--------------------------------------------

              Project: WildFly Core  (was: JBoss Enterprise Application Platform)
                  Key: WFCORE-2717  (was: JBEAP-10507)
             Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
          Component/s: CLI
                           (was: CLI)
    Affects Version/s:     (was: 7.1.0.DR16)


> try-catch block doesn't work if catch block doesn't contains anything
> ---------------------------------------------------------------------
>
>                 Key: WFCORE-2717
>                 URL: https://issues.jboss.org/browse/WFCORE-2717
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Ingo Weiss
>            Assignee: Ingo Weiss
>
> Try-catch block doesn't work if catch block doesn't contains anything
> *Steps to reproduce:*
> {noformat}
> rm -f a.cli
> cat << EOF > a.cli
> try
>   echo try-block
>   /system-property=nonsence:read-resource()
> catch
>   # echo catch-block
> end-try
> echo after-block
> EOF
> ./jboss-cli.sh  -c --file=a.cli
> {noformat}
> *Actual results:*
> {noformat}
> [mkopecky at dhcp-10-40-4-227 bin]$ ./jboss-cli.sh  -c --file=a.cli
> try-block
> {
>     "outcome" => "failed",
>     "failure-description" => "WFLYCTL0216: Management resource '[(\"system-property\" => \"nonsence\")]' not found",
>     "rolled-back" => true
> }
> [mkopecky at dhcp-10-40-4-227 bin]$ 
> {noformat}
> *Expected results:*
> {noformat}
> [mkopecky at dhcp-10-40-4-227 bin]$ ./jboss-cli.sh  -c --file=a.cli
> try-block
> after-block
> [mkopecky at dhcp-10-40-4-227 bin]$ 
> {noformat}
> *Additional info:*
> This issue is not regression



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list