|
Re: java.lang.reflect.Array considered harmful?: msg#00028lang.jruby.user
robert kuzelj wrote: hi, Well this reprodcues the error message: include_class "java.lang.reflect.Array" foo=[] foo << 1 Which is clear enough (the reflect.Array seems to replace Rubys Array). The problematic JMX Code I'm trying to use is this ('mb' is an instance of com.sun.jmx.mbeanserver.JmxMBeanServer): mb.invoke(mem.objectName, "getThreadUserTime", [], []) The first [] must be an Object[], the second one must be a String[]. The Object[] doesn't seem to be a problem; but no matter what I do, the second parameter is always turned into a RubyArray instance. I even tried hacks like calling x = StringBuffer.new("") "".toString.split("XXX"), which return an empty String array (or one containing an empty string), but that returns a RubyArray as well. murphee -- Blog @ http://jroller.com/page/murphee ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: java.lang.reflect.Array considered harmful?: 00028, Werner Schuster (murphee) |
|---|---|
| Next by Date: | Re: java.lang.reflect.Array considered harmful?: 00028, Werner Schuster (murphee) |
| Previous by Thread: | Re: java.lang.reflect.Array considered harmful?i: 00028, robert kuzelj |
| Next by Thread: | Re: java.lang.reflect.Array considered harmful?: 00028, Thomas E Enebo |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |