Broken API in JRuby 1.1.3
-------------------------

                 Key: JRUBY-2808
                 URL: http://jira.codehaus.org/browse/JRUBY-2808
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.3
            Reporter: Martin Krauskopf
            Priority: Blocker


See this thread:

   
http://archive.jruby.codehaus.org/dev/3454c9680807160519p66012a2ao4f00994a6c6b8c76%40mail.gmail.com

Pasting important for convenience (follow the thread for the rest)

{quote}
RubyKernel#proc and RubyModule#ancestors (with a bunch of other methods)
changed their signature in rev. 7131:

   http://fisheye.codehaus.org/changelog/jruby/?cs=7131

   RubyArray ancestors()
   RubyProc proc(IRubyObject recv, Block block)

     becomes

   RubyArray ancestors(ThreadContext context)
   RubyProc proc(ThreadContext context, IRubyObject recv, Block block)

Any chance they will be taken back as deprecated for JRuby 1.1.3? E.g.
I've changed call:

     RubyProc proc = RubyKernel.proc(recv, block);

to:

     ThreadContext ctx = ThreadContext.newContext(recv.getRuntime());
     RubyProc proc = RubyKernel.proc(ctx, recv, block);

Is that right? If yes, the original method could be taken back.

If they are not taken back it would mean that already released
extensions like (j)ruby-debug-base will not work with JRuby 1.1.3. I've
supposed that during minor version increase (1.1.x) the API is kept. Is
that right assumption so above is a bug? I would file it.
{quote}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to