ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47593] New: say which zip file it was "error in opening zip file"
Date Tue, 28 Jul 2009 10:02:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47593

           Summary: say which zip file it was "error in opening zip file"
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: hauser@acm.org


Suggestion: org.apache.tools.ant.AntClassLoader.getResourceURL() could catch
ZipException, amend the message with the absolute file path and re-throw since
the java.util.zip coderes unfortunately didn't bother to be user-friendly with
their error messages...  :(

Luckily, the ZipException is even extensible, so open for chaining with minimum
side-effects

java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:203)
    at java.util.zip.ZipFile.<init>(ZipFile.java:234)
    at
org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:964)
    at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:876)



same idea as  Bug 35505

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message