Uploaded image for project: 'Jandex'
  1. Jandex
  2. JANDEX-24

Jandex -m creates broken jar files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1
    • 1.0.3.Final
    • None

      The fix for JANDEX-12 was applied so that jars were not deleted when -m was used on a system where the temp directory is on a different file system.

      The change has a problem which makes it not work at all as far as I can tell. JarIndexer.createJarIndex() calls copy() before the ZipOutputStream (out/zo) has close() called on it. Although flush() is called, that does not write out the zip metadata trailer (only close() or finish() do), resulting in corrupt files.

            rhn-support-jlivings James Livingston (Inactive)
            rhn-support-jlivings James Livingston (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: