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-3137

Update JavaUtil.coerceNumericToType() to coerce numerics to the Java Serializable interface

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: JRuby 1.1.5
  • Fix Version/s: JRuby 1.x+
  • Component/s: Intro, Java Integration
  • Labels:
    None
  • Environment:
    Soylatte 1.0.3
  • Patch Submitted:
    Yes

Description

Currently, if you try to pass a Ruby Fixnum to a Java method whose argument type is Serializable, it fails with a message that it can't coerce a Fixnum to Serializable. Well, I'm not going to accept such a defeatist attitude!!! Yes, we can coerce a Fixnum to Serializable, and this patch proves it.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    coerce_to_serializable.patch
    12/Nov/08 2:59 PM
    1 kB
    Michael S. Allman

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Charles Oliver Nutter added a comment - 24/Jan/09 9:16 PM

Looks like a good fix..got a spec we can apply as well?

Show
Charles Oliver Nutter added a comment - 24/Jan/09 9:16 PM Looks like a good fix..got a spec we can apply as well?
Hide
Permalink
Charles Oliver Nutter added a comment - 05/Oct/09 2:59 PM

This still needs to be fixed and is part of the "new JI" we discussed a bit on the mailing list. We have a solution and a path forward, but not for 1.4.

Show
Charles Oliver Nutter added a comment - 05/Oct/09 2:59 PM This still needs to be fixed and is part of the "new JI" we discussed a bit on the mailing list. We have a solution and a path forward, but not for 1.4.
Hide
Permalink
Hiro Asari added a comment - 17/Dec/11 6:34 PM

Charlie, can you confirm that this is fixed now? JavaUtil.java looks quite different from what the patch suggests.

Show
Hiro Asari added a comment - 17/Dec/11 6:34 PM Charlie, can you confirm that this is fixed now? JavaUtil.java looks quite different from what the patch suggests.

People

  • Assignee:
    Unassigned
    Reporter:
    Michael S. Allman
Vote (1)
Watch (1)

Dates

  • Created:
    12/Nov/08 2:59 PM
    Updated:
    17/Dec/11 6:34 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.