Hello Joel,

Any ideas? This is related to a patch that you provided...

<http://www.working-dogs.com/cvsweb/index.cgi/jserv/src/java/org/apache/java
/lang/AdaptiveClassLoader.java.diff?r1=1.13&r2=1.14>

thanks,

-jon

----------
From: Jeff Hutchison <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: 18 Jan 2000 21:30:21 -0000
To: [EMAIL PROTECTED]
Subject: mod_jserv/5602: AdaptiveClassLoader will not load resource from
zipfile


>Number:         5602
>Category:       mod_jserv
>Synopsis:       AdaptiveClassLoader will not load resource from zipfile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jan 18 13:40:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Release:        Apache 1.3.9 + JServ 1.1
>Organization:
apache
>Environment:
Redhat 6.1 Linux
Linux narwhal.inst.strykercorp.com 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45
EDT 1999 i686 unknown
java full version "JDK 1.1.8 IBM build l118-19991013 (JIT enabled: jitc)"
>Description:
I've found a bug in AdaptiveClassLoader.loadResourceFromZipfile. This
method returns an InputStream with zipfile.getInputStream from within the
main block of a try/catch/finally statement and then calls zipfile.close
from within the finally block of the same.  When I commented out the
finally block of the try/catch/finally, it works fine.  (This is how it
was up through 1.1b3.)

Grossly paraphrased it's doing this:

try {
        ...
        return zipfile.getInputStream(entry);
        ...
} catch (IOException ex) {
        return null;
} finally {
        ...
        zipfile.close();
        ...
}

>How-To-Repeat:
Attempt to load property file from repository jar file.
>Fix:
Remove finally block, zipfile should close when gc'd.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <[EMAIL PROTECTED]> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 




--
----------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to