Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 0.9.2
    • Fix Version/s: JRuby 0.9.8
    • Component/s: Core Classes/Modules
    • Labels:
      None
    • Number of attachments :
      1

      Description

      "%01.3f" % nil
      

      Should throw a TypeError

        Activity

        Hide
        Bill Dortch added a comment -

        This patch will work, but it's a total hack. (The problem goes to the overall design of PrintfFormat – there isn't a clean fix.) Solves similar non-compliance issues with nil and other format specifiers.

        Show
        Bill Dortch added a comment - This patch will work, but it's a total hack. (The problem goes to the overall design of PrintfFormat – there isn't a clean fix.) Solves similar non-compliance issues with nil and other format specifiers.
        Hide
        Thomas E Enebo added a comment -

        I will take this for a spin...Looks reasonable and I would guess safe. This code is going away soon so a hack is fine. Thanks Bill.

        Show
        Thomas E Enebo added a comment - I will take this for a spin...Looks reasonable and I would guess safe. This code is going away soon so a hack is fine. Thanks Bill.
        Hide
        Thomas E Enebo added a comment -

        Applied in commit 3121 with one unit test (we should add several failing format tests when rewrite lands). Thanks Bill

        Show
        Thomas E Enebo added a comment - Applied in commit 3121 with one unit test (we should add several failing format tests when rewrite lands). Thanks Bill

          People

          • Assignee:
            Unassigned
            Reporter:
            Thomas E Enebo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: