Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3490

IllegalArgumentException when for loop is used for command producing non iterable result

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha6
    • 4.0.0.Alpha5
    • CLI
    • None

      [standalone@embedded /] set name=World
      [standalone@embedded /] for var in :resolve-expression(expression=Hello $name!)
      java.lang.IllegalArgumentException
      

      As you can see in the example, the commands produce IllegalArgumentException. Instead of IllegalArgumentException there should be an error message explaining what is wrong.

              jdenise@redhat.com Jean Francois Denise
              eduda_jira Erich Duda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: