dev@glassfish.java.net

Re: is quicklook working right now?

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Sun, 11 Oct 2009 20:02:46 -0700

Richard S. Hall wrote on 10/11/09 4:41 AM:
> I set a break point where Felix opens the the first bundle JAR file
> using JarFile. Before creating the JarFile there was no open bundle JAR
> files, after it there were two. I even created a simple test program
> that only opens a JarFile in its main method and sleeps for 30 seconds.
> This is what I saw:
>
> java 14129 rickhall 30r REG 14,2 846 43270278
> /Users/rickhall/tmp/jar/jar.jar
> java 14129 rickhall 31r REG 14,2 846 43270278
> /Users/rickhall/tmp/jar/jar.jar
>
> So, it seems JarFile always reports two open files. Not sure why.

So, I guess it's a bug, or feature, of the JDK.

Maybe you should file a bug and see what they say? You might want
to search the bug database first.