Posted by moses70
on July 23, 2008 at 2:57 PM PDT
Today I experimented with method to speed up applet loading.
Both techniques (pack200 + index) have been there for a long time but only few people know how to use it.
The new plugin with better pack support encourages to bring the applets up to date.
And pack works very well with the new applet plugin. But jar indexing would bring even more speed.
Unfortunately, its broken!
I found a bug parade entry from 2001 (!), which explains this problem:
The bug is marked to be fixed since JDK5, but even java6u10 has this bug.
Because the jar indexer skips the META-INF Entries, the classloader fails to load resources from META-INF dirs. In my case, it was the mailcap file.
Can this be true? It seems quite easy to fix the jar-indexer to add a META-INF-entry. Or the classloader to consider all jars for META-INF, even if not listed in index.
I think it would be a good time to fix this. How about?