how to downcast a jobjectArray to an array of my own classes???

Tom Tromey
Tue Jul 2 16:36:00 GMT 2002

>>>>> "Marco" == Marco Feuerstein <> writes:

Marco> myArray = (jobjectArray) someClass->getNodes(blah);

Marco> Well, now I have an array of objects. My problem is that I need
Marco> an array of Nodes for my next operation.  How can I downcast
Marco> myArray to an array of Nodes?

    typedef JArray<Node *> *jnodeArray;
    jnodeArray ma2 = (jnodeArray) myArray;


More information about the Java mailing list