From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7945 invoked by alias); 23 Apr 2004 15:37:10 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7937 invoked from network); 23 Apr 2004 15:37:09 -0000 Received: from unknown (HELO zdemail04.zdem.compaq.com) (161.114.112.28) by sources.redhat.com with SMTP; 23 Apr 2004 15:37:09 -0000 Received: from bbnexg11.emea.cpqcorp.net (bbnexg11.emea.cpqcorp.net [16.57.5.20]) by zdemail04.zdem.compaq.com (Postfix) with ESMTP id 0DFE619F for ; Fri, 23 Apr 2004 17:37:00 +0200 (CEST) Received: from bbnexc02.emea.cpqcorp.net ([16.57.5.27]) by bbnexg11.emea.cpqcorp.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 23 Apr 2004 17:36:59 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: gcj Date: Fri, 23 Apr 2004 15:37:00 -0000 Message-ID: <242175EA3C8D3045B8D77EE70A063DB50295F20A@bbnexc02.emea.cpqcorp.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Plapp, Phillip" To: X-OriginalArrivalTime: 23 Apr 2004 15:36:59.0756 (UTC) FILETIME=[D135BAC0:01C42948] X-SW-Source: 2004-04/txt/msg00314.txt.bz2 Hello gnu, I've been playing around with the CNI from gcj, which I find really helpful, and have come up with a question. I have looked over the documentation, but still cannot answer the question myself so I've reduced myself to bothering somebody else. This is not an emergency....... 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 =3D (ItemVersionStatistics) arrayListVariable->get(0); The compiler gives the following error message: ItemTest.cpp: In function `int main(int, char*)': ItemTest.cpp:643: error: no matching function for call to `ItemVersionStatistics::ItemVersionStatistics(java::lang::Object*)' ./ItemVersionStatistics.h:33: note: candidates are: ItemVersionStatistics::ItemVersionStatistics(java ::lang::String*, java::util::Date*, java::util::ArrayList*) To me it looks like the type cast is being ignored. What am I doing wrong? Thanks! Phillip Plapp =20=20