Issue Details (XML | Word | Printable)

Key: FILEUPLOAD-113
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jochen Wiedmann
Reporter: Christopher Sahnwaldt
Votes: 1
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Commons FileUpload

uncomment ServletFileUpload.isMultipartContent()

Created: 22/Jun/06 04:13 PM   Updated: 09/Mar/07 08:32 PM
Return to search
Component/s: None
Affects Version/s: 1.0 Final, 1.1 Final, 1.1.1
Fix Version/s: 1.2

Time Tracking:
Not Specified

Resolution Date: 05/Aug/06 09:49 PM


 Description  « Hide
ServletFileUpload.isMultipartContent() is commented out. The comment says "This method cannot be enabled until the one in FileUploadBase is removed, since it is not possible to override a static method." That's wrong. It IS possible to override a static method, but it is NOT possible to override a final method. The two FileUploadBase.isMultipartContent() methods are not only static, they are final.

-> remove the final modifier from the FileUploadBase.isMultipartContent() methods, comment in ServletFileUpload.isMultipartContent() - voila.

P.S.: to be precise, you cannot 'override' a static method, but you can 'hide' it... See http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.4.8.2



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.