Is the problem here that you can't cast to null with the correct type,
or you just can't invoke the correct override? I'm thinking it's
override selection.
All of the null casting suggestions seem great if you know that you
have nil, but typically we have a variable which may or may not be
nil. If we allow a method that lets us specify which types to use,
would that be enough to resolve the proper override?
foo = nil
bar = 5
obj.java_send([:Component, :int], foo, bar)
obj.java_send([:Frame, :int], foo, bar)
Maybe java_send only lives on Java proxy objects (or Ruby objects that
have a parent Java class). This way you don't muck with core stuff.
Logan Barnett
[email protected]
http://www.logustus.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email