[kaffe] [gump] NPE using Jar files w/o manifest

Mark Wielaard mark at klomp.org
Sat Dec 25 04:27:05 PST 2004

On Fri, 2004-12-24 at 15:02 -0600, Adam Heath wrote:
> Ah, simple.  If we can't find the named entry, return null for the input
> stream.  Fix in cvs.

hehe. Simple he calls that. For the GNU Classpath implementation we had
a lot of debate before we made this change. And basically the only
reason to make such a change was for how ant was relying on this
behaviour. See this comment in the source code:

   * This implementation returns null if the requested entry does not
   * exist.  This decision is not obviously correct, however, it does
   * appear to mirror Sun's implementation, and it is consistant with
   * their javadoc.  On the other hand, the old JCL book, 2nd Edition,
   * claims that this should return a "non-null ZIP entry".  We have
   * chosen for now ignore the old book, as modern versions of Ant (an
   * important application) depend on this behaviour.  See discussion
   * in this thread:
   * http://gcc.gnu.org/ml/java-patches/2004-q2/msg00602.html

BTW. Maybe it would be a good idea for kaffe to adopt the GNU Classpath
java.util.zip implementation. We encountered a lot of subtle issues in
this package. Sharing this kind of bugs/fixes with kaffe would be
beneficial to both projects.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://kaffe.org/pipermail/kaffe/attachments/20041225/8afd2265/attachment-0002.pgp 

More information about the kaffe mailing list