This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: how to downcast a jobjectArray to an array of my own classes???
- From: Tom Tromey <tromey at redhat dot com>
- To: Marco Feuerstein <marco dot feuerstein at web dot de>
- Cc: java at gcc dot gnu dot org
- Date: 02 Jul 2002 17:46:17 -0600
- Subject: Re: how to downcast a jobjectArray to an array of my own classes???
- References: <3D2224A6.7020409@web.de>
- Reply-to: tromey at redhat dot com
>>>>> "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