[
https://issues.apache.org/jira/browse/SANDBOX-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Pinet updated SANDBOX-257:
------------------------------
Attachment: Archive.patch
This is the suggested patch for the Archive class. The
org.apache.commons.compress.AbstractArchive class would need to update its
method signatures as well. I have implemented this fix in my own working copy
and it is functioning properly.
> Each method in the Archive interface should throw ArchiveException to remain
> consistent with Compressor interface
> -----------------------------------------------------------------------------------------------------------------
>
> Key: SANDBOX-257
> URL: https://issues.apache.org/jira/browse/SANDBOX-257
> Project: Commons Sandbox
> Issue Type: Bug
> Components: Compress
> Environment: N/A
> Reporter: Tim Pinet
> Attachments: Archive.patch
>
> Original Estimate: 10h
> Remaining Estimate: 10h
>
> Every method in the Compressor interface throws a CompressException however
> not all of the methods within the Archive interface throw ArchiveException.
> When a developer (such as myself) is implementing my own Archive
> implementations (7zip and Rar for example) there are error scenarios in some
> of my concrete method implementation where I would like to throw an
> ArchiveException but can not.
> It is suggested to add a "throws ArchiveException" clause for each of the
> method signatures in the Archive interface.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.