jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-13

Consider mapping java.math.BigInteger with Bignum

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 0.9.0
  • Fix Version/s: JRuby 0.9.9
  • Component/s: Java Integration
  • Labels:
    None

Description

Consider mapping java.math.BigInteger with Bignum.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Charles Oliver Nutter added a comment - 18/Apr/07 4:01 AM

We'd probably like to add something for this in 1.0, if not full-features coercion and mapping.

Show
Charles Oliver Nutter added a comment - 18/Apr/07 4:01 AM We'd probably like to add something for this in 1.0, if not full-features coercion and mapping.
Hide
Permalink
Charles Oliver Nutter added a comment - 24/Apr/07 3:12 PM

This got resovlved incidentally at some point, perhaps with various javasupport improvements over the past several months.

Show
Charles Oliver Nutter added a comment - 24/Apr/07 3:12 PM This got resovlved incidentally at some point, perhaps with various javasupport improvements over the past several months.
Hide
Permalink
Steen Lehmann added a comment - 20/May/07 3:27 PM

I find it confusing that this example doesn't work:

irb(main):003:0> java.math.BigInteger.new("2").pow(3).pow(4)
NoMethodError: undefined method `pow' for 8:Bignum or inaccessible method `pow' for 8:Bignum
from (irb):3:in `method_missing'
from (irb):3:in `binding'

pow() should return a BigInteger but instead returns a Bignum, which doesn't know the pow method.

Show
Steen Lehmann added a comment - 20/May/07 3:27 PM I find it confusing that this example doesn't work: irb(main):003:0> java.math.BigInteger.new("2").pow(3).pow(4) NoMethodError: undefined method `pow' for 8:Bignum or inaccessible method `pow' for 8:Bignum from (irb):3:in `method_missing' from (irb):3:in `binding' pow() should return a BigInteger but instead returns a Bignum, which doesn't know the pow method.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Thomas E Enebo
Vote (0)
Watch (1)

Dates

  • Created:
    17/Jul/06 4:59 PM
    Updated:
    20/May/07 3:27 PM
    Resolved:
    24/Apr/07 3:12 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.