Search:

Type: Posts; User: dlorde

Search: Search took 0.11 seconds.

  1. Replies
    10
    Views
    2,137

    Re: Need help deserializing an integer array.

    OIC - oops, my bad - I didn't look too closely at the API, but should have noticed the difference in parameters.

    It was late, I was tired, what can I say? OTOH maybe I should get more sleep...
  2. Replies
    10
    Views
    2,137

    Re: Need help deserializing an integer array.

    Why make it complicated, why not just:
    import java.lang.reflect.Array;
    ...
    Object anArray = Array.newInstance(String.class, 4);

    ETA - oh wait, I was forgetting, you need the Class.forName(..)...
  3. Replies
    10
    Views
    2,137

    Re: Need help deserializing an integer array.

    You can do this with the Array class. It is part of the reflection package, but it is designed for just this kind of thing, and it does create real arrays (although they're handled as Objects).
Results 1 to 3 of 3