Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4715

String consisting of only decimal digits will be converted to integer if inputted as option or argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 4.0.6
    • None
    • karaf
    • None

    Description

      Assume that an argument is declared as String, and the input consists only of decimal digits and its numeric value is greater than a limit. The variable associated with the argument will be set to the the numeric expression of the given text.

      This applies also to option.

      In the following example, "12345678901234567890" is expected, but "1.2345678901234567E19" is shown.

      karaf@root()> echo 12345678901234567890
      1.2345678901234567E19

      Attachments

        Activity

          People

            Unassigned Unassigned
            lliao Lijun Liao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: