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]

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



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