commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eirik Lygre (JIRA)" <>
Subject [jira] [Created] (FILEUPLOAD-266) FileItem should extend javax.activation.DataSource (requires Java 1.6)
Date Tue, 09 Jun 2015 16:24:02 GMT
Eirik Lygre created FILEUPLOAD-266:

             Summary: FileItem should extend javax.activation.DataSource (requires Java 1.6)
                 Key: FILEUPLOAD-266
             Project: Commons FileUpload
          Issue Type: Improvement
    Affects Versions: 1.3.1
            Reporter: Eirik Lygre
            Priority: Minor

FileItem currently does not implement javax.activation.DataHandler; the javadoc states "While
this interface does not extend javax.activation.DataSource per se (to avoid a seldom used
dependency), several of the defined methods are specifically defined with the same signatures
as methods in that interface. This allows an implementation of this interface to also implement
javax.activation.DataSource with minimal additional work."

This limitation stems from 2002 (,
at a time when javax.activation.DataSource was not part of Java SE (Or J2SE, which it was,
back then!).

Times have changed, and javax.activation.* have been part of Java SE proper since Java 6.
If/when java6 is an accepted minimum for FileUpload, FileItem should extend javax.activation.DataSource.

This message was sent by Atlassian JIRA

View raw message