Eval within instance_eval seems to have the wrong self.
-------------------------------------------------------

                 Key: JRUBY-858
                 URL: http://jira.codehaus.org/browse/JRUBY-858
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
            Reporter: Ola Bini
            Assignee: Thomas E Enebo
             Fix For: JRuby 0.9.9


If evaluating a simple eval within an instance_eval object, the inner 
evaluation doesn't seem exactly right. For example, this test case:

a = Object.new

a.instance_eval { 
  eval("@a = 10")
}

p a.instance_variable_get(:@a) == 10

will fail in JRuby. Since this is one of the two remaining issues left, until 
we can include test_marshal, it seems important.

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