You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Adam Heath (JIRA)" <ji...@apache.org> on 2007/05/14 15:37:16 UTC

[jira] Created: (VFS-139) Fix javac 1.5 warnings

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


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


[jira] Resolved: (VFS-139) Fix javac 1.5 warnings

Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Ivankovits resolved VFS-139.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1

Applied - Thanks for the patch!

> 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


[jira] Updated: (VFS-139) Fix javac 1.5 warnings

Posted by "Adam Heath (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Heath updated VFS-139:
---------------------------

    Attachment: fix_java15-warnings.patch

Against svn 501759.

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


[jira] Commented: (VFS-139) Fix javac 1.5 warnings

Posted by "Joerg Schaible (JIRA)" <ji...@apache.org>.
    [ 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