On Thu, 16 Mar 2006, David Corbin defenestrated me: > This might be related to #7, but I don't think so. (And yes, it is stupid, but > it's much more complex than this in our code). > > ---cut--- > require 'java' > include_class 'java.util.ArrayList' > include_class 'java.util.ArrayList' > ---end---
I made a change about a month ago, which now throws an exception (do not have jruby source handy right now and I cannot quite rememebr what I called it) when you include_class on top of a constant which already exists. This change was in reaction to someone doing an include class when there was already a constant of the same name. We need to provide some way to know include_class failed. I think I can fix this bug by seeing if we already defined the same proxy and then see if the conflict is that proxy...In which case, we should just return without error since it is just carrying out the spirit of the function: ArrayList is included into the current scope. I will fix this evening. -Tom -- + http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+ | Thomas E Enebo, Protagonist | "Luck favors the prepared | | | mind." -Louis Pasteur | ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Jruby-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jruby-devel
