commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg Schaible (JIRA)" <j...@apache.org>
Subject [jira] Commented: (VFS-139) Fix javac 1.5 warnings
Date Mon, 14 May 2007 13:45:16 GMT

    [ https://issues.apache.org/jira/browse/VFS-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495596
] 

Joerg Schaible commented on VFS-139:
------------------------------------

Cast the null value.

> Fix javac 1.5 warnings
> ----------------------
>
>                 Key: VFS-139
>                 URL: https://issues.apache.org/jira/browse/VFS-139
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 1.1
>            Reporter: Adam Heath
>            Priority: Trivial
>             Fix For: 1.1
>
>         Attachments: fix_java15-warnings.patch
>
>
> In java1.5, javac has support for varargs.  It does this by auto-creating an array of
the appropriate type, when a variable number of parameters are passed.
> However, in such cases, when a null is passed to such a method, it isn't completely sure
how to proceed.  Should it create an array with a single null value, or should it just pass
the null value straight thru?
> In any event, the attached patch fixes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
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