Differences in class_eval cause failure in matchy-0.4.3+
--------------------------------------------------------
Key: JRUBY-4556
URL: http://jira.codehaus.org/browse/JRUBY-4556
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.4
Environment: Gentoo Linux
Reporter: Diego Elio Pettenò
Assignee: Thomas E Enebo
Since release 0.4.3 till at least 0.5.1, matchy stopped working with JRuby
because of commit
http://github.com/mcmire/matchy/commit/4f6ec48c64ab52ab0f183f56b5e3c380a6cc9a46
.
enebo reduced the testcase to this:
class Foo
class << self
def foo
@@heh
end
class_eval <<-EOF
def bar
@@heh = 1
end
EOF
end
end
Foo.bar
p Foo.foo
so now the problem is whether this is by design or by mistake :)
--
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