Issue Details (XML | Word | Printable)

Key: JRUBY-1257
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Charles Oliver Nutter
Reporter: Stuart Halloway
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
JRuby

BigDecimal to_s blows up for bad format strings

Created: 02/Aug/07 10:10 PM   Updated: 23/Apr/08 10:04 AM
Component/s: Core Classes/Modules
Affects Version/s: None
Fix Version/s: JRuby 1.1b1

Time Tracking:
Not Specified

File Attachments: 1. File fix_big_decimal_to_s.diff (6 kB)


Testcase included: yes
Patch Submitted: Yes


 Description  « Hide
This blows up:

bd.to_s("+-2")

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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Stuart Halloway added a comment - 02/Aug/07 10:44 PM

Charles Oliver Nutter added a comment - 20/Oct/07 12:29 AM
Fixed, only on trunk; there are other bigdecimal changes that haven't been backported to 1.0 branch.