|
Re: java.lang.reflect.Array considered harmful?: msg#00034lang.jruby.user
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> |
|---|---|---|
| Previous by Date: | Re: java.lang.reflect.Array considered harmful?: 00034, Thomas E Enebo |
|---|---|
| Next by Date: | Re: java.lang.reflect.Array considered harmful?: 00034, Charles O Nutter |
| Previous by Thread: | Re: java.lang.reflect.Array considered harmful?i: 00034, Thomas E Enebo |
| Next by Thread: | Re: java.lang.reflect.Array considered harmful?: 00034, Charles O Nutter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |