This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: gcj


> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]