Freenet needs this to determine Content-Type for the static files it serves over the web. Classpath appears to have a working version, although some common extensions (css, ico) are notably missing.
Subject: Bug 27024 Author: tromey Date: Wed Apr 5 18:43:15 2006 New Revision: 112715 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112715 Log: libjava/classpath: PR libgcj/27024: * java/net/MimeTypeMapper.java (getContentTypeFor): Fall back to MimeTypes. libjava: PR libgcj/27024: * java/net/URLConnection.java (guessContentTypeFromName): Rewrote, using Classpath implementation. (getFileNameMap): Likewise. (guessContentTypeFromStream): Return application/octet-stream. Modified: branches/gcc-4_1-branch/libjava/ChangeLog branches/gcc-4_1-branch/libjava/classpath/ChangeLog.gcj branches/gcc-4_1-branch/libjava/classpath/java/net/MimeTypeMapper.java branches/gcc-4_1-branch/libjava/java/net/URLConnection.java
I checked in a fix to the 4.1 branch. For svn trunk I am looking at a more complete merge with Classpath.
Quick note on the status of this -- after the next Classpath import, we should simply remove our copy of URLConnection and also our copy of gnu.java.net.DefaultContentHandlerFactory
Subject: Bug 27024 Author: tromey Date: Wed May 24 21:44:34 2006 New Revision: 114056 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114056 Log: PR libgcj/27024: * sources.am, Makefile.in: Rebuilt. * gnu/java/net/DefaultContentHandlerFactory.java: Removed. * java/net/URLConnection.java: Removed. Removed: trunk/libjava/gnu/java/net/DefaultContentHandlerFactory.java trunk/libjava/java/net/URLConnection.java Modified: trunk/libjava/ChangeLog trunk/libjava/Makefile.in trunk/libjava/sources.am
Fixed in 4.2 now as well.