Re: gcj

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> In my C++ CNI file I access a java ArrayList which contains several
> instances of my class ItemVersionStatistics.
> 
> When I enter the line,
> 	ItemVersionStatistics *ivs = (ItemVersionStatistics)
> arrayListVariable->get(0);

You are typecasting to a ItemVersionStatistics, not to a pointer to it. Try:

ItemVersionStatistics *ivs = (ItemVersionStatistics *)
  arrayListVariable->get(0);



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux