Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-185

Unable to assign more than one digit in the CLI of arithmetic example

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2.0
    • None
    • None

    Description

      Unable to assign more than one digit in the CLI of arithmetic example

      bin> ./client.sh assign --name a --value 11
      /Users/snemuri/git/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.1.1-alpha-SNAPSHOT.jar
      Exception in thread "main" java.lang.IllegalArgumentException: Invalid expression 11 Try something like: 'a+b' or '2'
      	at org.apache.ratis.examples.arithmetic.cli.Assign.createExpression(Assign.java:73)
      	at org.apache.ratis.examples.arithmetic.cli.Assign.operation(Assign.java:53)
      	at org.apache.ratis.examples.arithmetic.cli.Client.run(Client.java:50)
      	at org.apache.ratis.examples.arithmetic.Runner.main(Runner.java:62)
      
      

      Attachments

        1. RATIS-185.patch
          1 kB
          Sandeep Nemuri

        Activity

          People

            Sandeep Nemuri Sandeep Nemuri
            Sandeep Nemuri Sandeep Nemuri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: