Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4067842

Float.valueOf() semantic change not for the better

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.1.3
    • core-libs
    • None
    • x86
    • windows_95



      Name: rlT66838 Date: 07/28/97


      You have changed Float.valueOf() to parse the
      entire string (rather than just the first n chars
      that are numeric (or decimal). I understand that
      in some cases this is what you want, but I want to
      parse off the number even though there is a non
      numerical string immediately following it. It is
      especially frustrating becuase you dont offer
      any sort of other primitive. All the float
      conversion logic is trapped inside this method with
      a silly policy!

      ======================================================================

            darcy Joe Darcy
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: