Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 42326 invoked from network); 22 Jun 2005 18:36:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2005 18:36:40 -0000 Received: (qmail 95374 invoked by uid 500); 22 Jun 2005 18:36:37 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 95311 invoked by uid 500); 22 Jun 2005 18:36:36 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 95298 invoked by uid 99); 22 Jun 2005 18:36:36 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2005 11:36:36 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 4D22A13; Wed, 22 Jun 2005 20:36:34 +0200 (CEST) From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 35474] New: - PatchAvailable [collections] Build Warnings when building under JDK 1.5 X-Bugzilla-Reason: AssignedTo Message-Id: <20050622183634.4D22A13@ajax.apache.org> Date: Wed, 22 Jun 2005 20:36:34 +0200 (CEST) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35474 Summary: PatchAvailable [collections] Build Warnings when building under JDK 1.5 Product: Commons Version: Nightly Builds Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Collections AssignedTo: commons-dev@jakarta.apache.org ReportedBy: willpugh@sourcelabs.com When I build under JDK 1.5 on MacOSX, I get a bunch of warnings. Almost all of them are a result of some APIs moving over to using varargs. Here is an example of some of the warnings. The fixes in just about all cases was to cast a null to either (Method[]) or (Object[]). in one place a temporary array new String[] { ... } had to be changed to new Object[] { ... } [javac] Compiling 271 source files to /Users/willpugh/projects/beanutils2/collections2/collections/target/classes /Users/willpugh/projects/beanutils2/collections2/collections/src/java/org/apache/commons/collections/functors/PrototypeFactory.java:62: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Class for a varargs call cast to java.lang.Class[] for a non-varargs call and to suppress this warning Method method = prototype.getClass().getMethod("clone", null); ^ /Users/willpugh/projects/beanutils2/collections2/collections/src/java/org/apache/commons/collections/functors/PrototypeFactory.java:119: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Class for a varargs call cast to java.lang.Class[] for a non-varargs call and to suppress this warning iCloneMethod = iPrototype.getClass().getMethod("clone", null); . . . -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org