Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix AntProject#java for JRuby #2
When calling the AntProject#java task from JRuby, #method_missing is not invoked due to all Objects implicitly getting a #java method on the JRuby platform.
This patch explicitly declares the #java method on AntProject so as to ensure that calls to #java get routed to #method_missing in JRuby -- as one would expect.
This was discovered during the development of buildr-mirah: http://github.com/thomaslee/buildr-mirah -- happy to reproduce this in isolation if it's helpful.