[
https://issues.jboss.org/browse/WFCORE-2717?page=com.atlassian.jira.plugi...
]
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@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@dhcp-10-40-4-227 bin]$
{noformat}
*Expected results:*
{noformat}
[mkopecky@dhcp-10-40-4-227 bin]$ ./jboss-cli.sh -c --file=a.cli
try-block
after-block
[mkopecky@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)