From: SAKURAI Masashi Date: 2006-01-04T11:57:49+09:00 Subject: Re: Talking to Java Code from Ruby Hi, Sorry for late response. I think JasperFillManager does not have the method fillReport(JasperCompileManager,Map,JRDataSource). How about following code? -------------------BEGIN------------------ (snip) : manager = jnew :JasperCompileManager jasperReport = manager.compileReport(path_to_template) : -------------------END------------------ > I could see why it would get confused. It's an overloaded method. I've > poured over the docs for yajb but haven't found anywhere that explains how to > force calls of overloaded methods. The yajb tries to search the overloaded method as java does. So, giving appropriate arguments, you can choose the method. Because the difference of typing between ruby (duck-typing) and java (strong typing) is great, I'm not sure that the method searching code is complete. If you are interesting in the code, please see the url (served by gonzui at RAA) http://raa.ruby-lang.org/gonzui/markup/yajb/src/java_src/jbridge/MethodFinder.java