[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-377) ZipExporter.exportTo(java.io.File target) does not fail when target exists.
Tommy Tynjä (JIRA)
jira-events at lists.jboss.org
Mon Jul 30 01:50:07 EDT 2012
[ https://issues.jboss.org/browse/SHRINKWRAP-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tommy Tynjä updated SHRINKWRAP-377:
-----------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/shrinkwrap/shrinkwrap/pull/59
Created associated pull request.
> ZipExporter.exportTo(java.io.File target) does not fail when target exists.
> ---------------------------------------------------------------------------
>
> Key: SHRINKWRAP-377
> URL: https://issues.jboss.org/browse/SHRINKWRAP-377
> Project: ShrinkWrap
> Issue Type: Bug
> Affects Versions: 1.0.0-cr-1
> Reporter: Dominik Pospisil
> Assignee: Tommy Tynjä
> Labels: starter
>
> According to javadoc ZipExporter.exportTo(java.io.File target) should fail if the target file exists. It does not seem to be the case, the target file is rewritten silently instead.
> Also, the javadoc is confusing. It says:
> Exports provided archive as in an implementation-specific format, written to the specified File target. If the target exists this call will fail with IllegalArgumentException. However later it says that FileExistsException is thrown in such case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list