Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.1.5
    • Fix Version/s: JRuby 1.1.6
    • Component/s: Core Classes/Modules
    • Labels:
      None
    • Number of attachments :
      0

      Description

      This is a regression due to binding fixes/improvements in 1.1.5. Basically, because we no longer stand up a full frame for invoking "binding", the self is now the caller, rather than the callee. Since binding is private, caller usually is callee; but in a case found in the templater gem, caller is different (using send :binding). Here's a trivial reproduction:

      class Foo
        def foo
          puts 'here'
        end
      end
      
      eval 'foo', Foo.new.send(:binding)
      

      This breaks templater gem, which is used for many things in merb.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Charles Oliver Nutter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: