logo       

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

lang.jruby.user

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


On Tue, 14 Feb 2006, Thomas E Enebo wrote:

...

| I have recently ran into how unwieldy it is to deal with java
| arrays and would like to consider other mechanisms for this. Even
| if it is just a convenience method.
|
| If I remember right we have no way of making an array of primitives.
| So this area needs some work anyways...

I was able to do this (at least awhile ago) where JRArray is the
included class 'java.lang.reflect.Array' and JBoolean is
'java.lang.Boolean'.

a = JRArray.newInstance(JBoolean::TYPE, size)

I was dealing with primitive arrays back when I was trying to work out
how to deal with the Unicode Strings, encodings, and String.getBytes,
etc.

Wes

| -Tom
|
|

--
# Wes Nakamura <wknaka@xxxxxxxxx>


-------------------------------------------------------
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