commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35474] New: - PatchAvailable [collections] Build Warnings when building under JDK 1.5
Date Wed, 22 Jun 2005 18:36:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35474>.
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


Mime
View raw message