Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 38149 invoked from network); 26 Jun 2006 09:37:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2006 09:37:22 -0000 Received: (qmail 34728 invoked by uid 500); 26 Jun 2006 09:37:19 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 34589 invoked by uid 500); 26 Jun 2006 09:37:18 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 34578 invoked by uid 99); 26 Jun 2006 09:37:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2006 02:37:18 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_RFC_WHOIS,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (asf.osuosl.org: transitioning domain of nbeyer@kc.rr.com does not designate 24.234.0.68 as permitted sender) Received: from [24.234.0.68] (HELO hnrelay-2.lvcm.net) (24.234.0.68) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2006 02:37:17 -0700 Received: from localhost (localhost [127.0.0.1]) by hnrelay-2.lvcm.net (Postfix) with ESMTP id E37AB3C005 for ; Mon, 26 Jun 2006 02:36:54 -0700 (PDT) Received: from hnrelay-2.lvcm.net ([127.0.0.1]) by localhost (hnrelay-2.lvcm.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20803-07 for ; Mon, 26 Jun 2006 02:36:51 -0700 (PDT) Received: from LITTLEGUY (wsip-24-120-176-245.lv.lv.cox.net [24.120.176.245]) by hnrelay-2.lvcm.net (Postfix) with ESMTP id BA9673C003 for ; Mon, 26 Jun 2006 02:17:50 -0700 (PDT) From: "Nathan Beyer" To: Subject: RE: [classlib] Help wanted! Date: Mon, 26 Jun 2006 04:17:52 -0500 Message-ID: <000601c69901$677fbec0$f5b07818@LITTLEGUY> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-reply-to: <449FA319.1090902@googlemail.com> Thread-Index: AcaY/5pVHh02vaBZSvKWuxHPjCVAeQAAKZlA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: amavisd-new at lvcm.net X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: George Harley [mailto:george.c.harley@googlemail.com] > > Nathan Beyer wrote: > > Yeah, I noticed that. Unfortunately, it can only be used luni for now, > since > > the compiler is turning it into an interface class. The sooner we move > to > > 1.5 class files the better; I'm tired of the weird 1.5 source to 1.4 > class > > file behavior that's basically undefined. > > > > > > Hi Nathan, > > Do you mean that using @SuppressWarnings in types outside of the LUNI > module results in compiler problems for you ? If so then I cannot > recreate this problem. > > Best regards, > George That is the problem I'm having. When all source is compiled together using ECJ I can use the annotations outside the project they are declared in. However, when trying to use the annotations in a project an compiling against pre-built class files, then the annotation classes can't be resolved. This is why the meta-annotations on Deprecated, SuppressWarnings and Override are currently commented out. The way to recreate this is to open LUNI and another project, such as NIO in an Eclipse workspace and then add an annotation to a class in NIO. It should compile fine as 'Plug-in Dependencies' will resolve the LUNI reference in the workspace. Close the LUNI project and rebuild NIO. The dependencies now resolve to the target platform's JARs and the class using the annotation will fail to compile. -Nathan > > > >> -----Original Message----- > >> From: Tim Ellison [mailto:t.p.ellison@gmail.com] > >> Sent: Thursday, June 22, 2006 6:04 AM > >> To: harmony-dev@incubator.apache.org > >> Subject: Re: [classlib] Help wanted! > >> > >> Nathan Beyer wrote: > >> > >>> I've been hacking away at those warnings every chance I get. The > 'luni' > >>> module is going to be filled warnings until we can begin using > >>> > >> annotations, > >> > >>> specifically the @SuppressWarning, especially the Collections classes. > >>> > >> Thanks to George [1] you can now use @SuppressWarning. > >> > >> [1] http://svn.apache.org/viewvc?view=rev&revision=416121 > >> > >> Regards, > >> Tim > >> > >> > >>> There > >>> are a number of cases where unchecked type uses are a requirement > >>> > >> because of > >> > >>> limitations in current APIs, backwards compatability and generic array > >>> construction. > >>> > >>> Here are some of the major pieces that can't be avoided and need > >>> > >> suppressing > >> > >>> annotations: > >>> * Cloning - When you clone a generified object you have no choice but > to > >>> > >> do > >> > >>> an unchecked cast. > >>> * Generic Array Construction - The only thing you can do is T[] = > >>> > >> (T[])new > >> > >>> Object[size]; and suppress the warning. > >>> > >>> In any case, I'm all for keep this stuff as clean as possible. I have > my > >>> Eclipse compiler settings cranked to the max in the IDE. > >>> > >>> -Nathan > >>> > >>> > >>>> -----Original Message----- > >>>> From: Mark Hindess [mailto:mark.hindess@googlemail.com] > >>>> Sent: Wednesday, June 21, 2006 12:49 AM > >>>> To: Apache Harmony Dev List > >>>> Subject: [classlib] Help wanted! > >>>> > >>>> > >>>> I was looking at building (and testing) with Eclipse + IBM VME. I > >>>> > >> think > >> > >>>> this is really important since ecj has a much cleaner classpath when > it > >>>> compiles so it helps us find errors quicker. > >>>> > >>>> The logs come out at over 3MB! There are lots of warnings about less > >>>> than ideal type checking - mostly as a result of our adoption of more > >>>> generics. For example: > >>>> > >>>> [javac] 1. WARNING in > >>>> /pbuilder/tmp/Harmony.my/modules/accessibility/src/mai > >>>> n/java/javax/accessibility/AccessibleRelationSet.java > >>>> [javac] (at line 44) > >>>> [javac] relations.add(relation); > >>>> [javac] ^^^^^^^^^^^^^^^^^^^^^^^ > >>>> [javac] Type safety: The method add(Object) belongs to the raw > type > >>>> Vector. > >>>> References to generic type Vector should be parameterized > >>>> [javac] ---------- > >>>> [javac] 2. WARNING in > >>>> /pbuilder/tmp/Harmony.my/modules/accessibility/src/mai > >>>> n/java/javax/accessibility/AccessibleRelationSet.java > >>>> [javac] (at line 88) > >>>> [javac] (AccessibleRelation[])relations.toArray(new > >>>> AccessibleRelation[r > >>>> elations.size()]); > >>>> [javac] > >>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >>>> ^^^^^^^^^^^^^^^^^ > >>>> [javac] Type safety: The method toArray(Object[]) belongs to the > >>>> > >> raw > >> > >>>> type Ve > >>>> ctor. References to generic type Vector should be parameterized > >>>> > >>>> I think we should try to improve these, but there are rather too many > >>>> for me to do on my own! What do others think? I think we could > >>>> > >> disable > >> > >>>> the warnings from Eclipse but I don't think that's really the right > >>>> thing to do. > >>>> > >>>> The distribution of warnings is as follows: > >>>> > >>>> 4 accessibility > >>>> 24 archive > >>>> 90 auth > >>>> 707 awt > >>>> 61 beans > >>>> 7 crypto > >>>> 128 jndi > >>>> 206 luni > >>>> 10 luni-kernel > >>>> 4 misc > >>>> 8 nio > >>>> 7 nio_char > >>>> 32 prefs > >>>> 17 regex > >>>> 260 rmi > >>>> 568 security > >>>> 936 swing > >>>> 26 text > >>>> 14 x-net > >>>> > >>>> Regards, > >>>> Mark. > >>>> > >>>> > >>>> > >>>> --------------------------------------------------------------------- > >>>> Terms of use : http://incubator.apache.org/harmony/mailing.html > >>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > >>>> For additional commands, e-mail: harmony-dev- > help@incubator.apache.org > >>>> > >>> --------------------------------------------------------------------- > >>> Terms of use : http://incubator.apache.org/harmony/mailing.html > >>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > >>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org > >>> > >>> > >>> > >> -- > >> > >> Tim Ellison (t.p.ellison@gmail.com) > >> IBM Java technology centre, UK. > >> > >> --------------------------------------------------------------------- > >> Terms of use : http://incubator.apache.org/harmony/mailing.html > >> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > >> For additional commands, e-mail: harmony-dev-help@incubator.apache.org > >> > > > > > > --------------------------------------------------------------------- > > Terms of use : http://incubator.apache.org/harmony/mailing.html > > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > > > > > > > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > For additional commands, e-mail: harmony-dev-help@incubator.apache.org --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org