Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-377

ZipExporter.exportTo(java.io.File target) does not fail when target exists.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0.0-cr-1
    • Fix Version/s: 1.1.0-alpha-3
    • Component/s: None
    • Labels:

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tommysdk Tommy Tynjä
                Reporter:
                dpospisil Dominik Pospisil
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: