This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]