-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Try-catch block doesn't work if catch block doesn't contains anything
Steps to reproduce:
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
Actual results:
[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]$
Expected results:
[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]$
Additional info:
This issue is not regression
- clones
-
JBEAP-10496 try-catch block doesn't work if catch block doesn't contains anything
- Closed