Use .fromString helpers in Double and Int32 Constructors and move Long.fromStringStrict functionality to Long.fromString

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a... BSON user
      I want... numeric constructors to throw on malformed input
      So that... the value I input is the value that is stored 

      User Impact

      • High

      Acceptance Criteria

      Implementation Requirements

      • When a string is inputted into the Int32 constructor, return Int32.fromString(value)
      • When a string is inputted into the Double constructor, return Double.fromString(value) 
      • Move Long.fromStringStrict functionality to Long.fromString 

      Testing Requirements

      • Update constructor tests to reflect error cases
      • Verify that perf remains within acceptable bounds

      Documentation Requirements

      • Update API for each constructor to reflect changes

              Assignee:
              Unassigned
              Reporter:
              Aditi Khare (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: