This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
how to downcast a jobjectArray to an array of my own classes???
- From: Marco Feuerstein <marco dot feuerstein at web dot de>
- To: java at gcc dot gnu dot org
- Date: Wed, 03 Jul 2002 00:09:42 +0200
- Subject: how to downcast a jobjectArray to an array of my own classes???
Hi folks,
sorry, if this question may be a bit banal to you, but I'm having
following problem:
I'm instantiating a jobjectArray myArray like this:
jobjectArray myArray;
Later on I'm assigning an array of Nodes (where Node is my own Java
class) doing an upcast:
myArray = (jobjectArray) someClass->getNodes(blah);
Well, now I have an array of objects. My problem is that I need an array
of Nodes for my next operation.
How can I downcast myArray to an array of Nodes?
Thank you so much!
Regards
Marco