Affects Version/s: None
Fix Version/s: None
Number of attachments :
I've got a strange error/race condition in my app which occurs in the jmx gem:
It occurs here: https://github.com/enebo/jmxjr/blob/master/lib/jmx.rb#L163
Without any special treatment, it complains that a Proc is expected, but a string was given.
If I change this to
self.class._send_(:define_method, rname, Proc.new
The exception changes and it complains that define_method does not exist on the instance, even if self.class is begin called.
If I change _send_ to send the exception disappears.
The funny thing is, that another exception appears afterwards, in a totally different place.
I guess this might be some strange scoping problem.
I cant cleanly reproduce this, but could provide access to the machine.