JRuby

BigDecimal to_s blows up for bad format strings

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: JRuby 1.1b1
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Testcase included:
    yes
  • Patch Submitted:
    Yes
  • Number of attachments :
    1

Description

This blows up:

bd.to_s("+-2")

The attached patch fixes the bug and makes the code more readable.

Activity

Hide
Stuart Halloway added a comment -
Show
Stuart Halloway added a comment - This patch comes from an episode of This Week In Refactoring
Hide
Charles Oliver Nutter added a comment -

Fixed, only on trunk; there are other bigdecimal changes that haven't been backported to 1.0 branch.

Show
Charles Oliver Nutter added a comment - Fixed, only on trunk; there are other bigdecimal changes that haven't been backported to 1.0 branch.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: