commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mads Danquah (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FILEUPLOAD-156) MultipartStream constructor requires package access to avoid deprecation warnings
Date Fri, 19 Sep 2008 12:52:44 GMT

    [ https://issues.apache.org/jira/browse/FILEUPLOAD-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632663#action_12632663
] 

Mads Danquah commented on FILEUPLOAD-156:
-----------------------------------------

If you instansiate the class via the deprecated constructors (which is the only possibility
you have), you will run in to a NullPointerException the second you try to use it.

The constuctors sets the notifyer-field to null during instansiation.

> MultipartStream constructor requires package access to avoid deprecation warnings
> ---------------------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-156
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-156
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>         Environment: All
>            Reporter: F. Andy Seidl
>            Priority: Minor
>
> All of the MulitipartStream constructor signatures are deprecated except one that requires
a org.apache.commons.fileupload.MultipartStream.ProgressNotifier parameter.  However, the
ProgressNotifier class has package access.  Thus, it is impossible for an application to make
use of the MultipartStream class without using a deprecated constructor.

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


Mime
View raw message