Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 23664 invoked from network); 5 Mar 2007 18:20:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 18:20:09 -0000 Received: (qmail 94970 invoked by uid 500); 5 Mar 2007 18:20:16 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 94941 invoked by uid 500); 5 Mar 2007 18:20:16 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 94932 invoked by uid 99); 5 Mar 2007 18:20:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 10:20:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [208.97.132.83] (HELO spaceymail-a2.g.dreamhost.com) (208.97.132.83) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 10:20:03 -0800 Received: from [192.168.15.102] (cpe-76-167-174-30.socal.res.rr.com [76.167.174.30]) by spaceymail-a2.g.dreamhost.com (Postfix) with ESMTP id A1D23106153 for ; Mon, 5 Mar 2007 10:19:12 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <87CB130B-1763-4312-9FCD-6999D7E402BC@objectstyle.org> References: <49D23F7404DC5B4086D7352312597E0FD267BC@FNHH-SVMEXDB002.Freenet-AG.de> <87CB130B-1763-4312-9FCD-6999D7E402BC@objectstyle.org> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <7833A37A-34D9-4694-8464-B44B2FDCD9D0@iq80.com> Content-Transfer-Encoding: quoted-printable From: Dain Sundstrom Subject: Re: AW: Java5: the expression of type list needs unchecked conversion Date: Mon, 5 Mar 2007 10:18:42 -0800 To: user@cayenne.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Ignore the warnings :) In intellij you can turn off the warnings in the "errors" preferences =20= pane. There are also compiler options to make the complier not =20 whine, but I don't know what the options are. -dain On Mar 5, 2007, at 3:15 AM, Andrus Adamchik wrote: > Squashing consequences of one Java 5 feature with another... nice :-) > > I wonder how we can address this at the framework level, without =20 > having to support two separate jdk-specific builds of Cayenne? =20 > Wonder how other frameworks handle that (I suspect they don't)? > > Andrus > > > > On Mar 5, 2007, at 9:57 AM, Peter Schr=F6der wrote: > >> you may provide the annotation @SuppressWarnings("unchecked") >> this will probably remove the warning in your IDE. >> >> the warning occurs, because of the performQuery returns just a =20 >> List-Object wich is not typesafe. >> >> -----Urspr=FCngliche Nachricht----- >> Von: news [mailto:news@sea.gmane.org] Im Auftrag von Arturo Perez >> Gesendet: Freitag, 2. M=E4rz 2007 20:53 >> An: user@cayenne.apache.org >> Betreff: Java5: the expression of type list needs unchecked =20 >> conversion >> >> Hi all, >> >> I'm using Eclipse and Java6 now. Whenever I do anything with >> performQuery() the IDE complains that >> the expression of type list needs unchecked conversion. >> I'm sure I could turn that off in the IDE but is there a way to >> write it so that the warning goes away? I tried casting. >> >> -arturo >> >> >