Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
Description
"%01.3f" % nil
Should throw a TypeError
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.