logo       

Re: java.lang.reflect.Array considered harmful?: msg#00025

lang.jruby.user

Subject: Re: java.lang.reflect.Array considered harmful?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Werner Schuster (murphee) wrote:
> howdy,

> I've been messing with java.lang.reflect.Array and its newInstance
> method, but that doesn work because include_class-ing it will mess up
> JRuby, because it seems like java.lang.reflect.Array replaces JRuby's
> Array.

Did you try including it as JArray rather than Array? Try:

include_class "java.lang.reflect.Array" { |p,name| "J" + name } [1]

Damian

[1] http://jruby.sourceforge.net/docs/java-highlevel.shtml
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD8av+AyLCB+mTtykRAsW/AKDAIbqvP3QaY7dgGBMyMHqFQzXRYACgjmWo
pUFR+2YzOI/ETtWyJ2LJeP0=
=Kk6B
-----END PGP SIGNATURE-----


-------------------------------------------------------
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>
Google Custom Search

News | FAQ | advertise