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

Tom Tromey tromey@redhat.com
Tue Jul 2 16:36:00 GMT 2002


>>>>> "Marco" == Marco Feuerstein <marco.feuerstein@web.de> 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;

Tom



More information about the Java mailing list