Bug 27024 - Implement URLConnection.getFileNameMap
Summary: Implement URLConnection.getFileNameMap
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libgcj (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: 4.1.1
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-04 14:41 UTC by Taral
Modified: 2006-05-24 21:45 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-04-05 00:26:02


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Taral 2006-04-04 14:41:42 UTC
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.
Comment 1 Tom Tromey 2006-04-05 18:43:23 UTC
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

Comment 2 Tom Tromey 2006-04-05 18:55:42 UTC
I checked in a fix to the 4.1 branch.
For svn trunk I am looking at a more complete merge with Classpath.
Comment 3 Tom Tromey 2006-05-13 23:27:58 UTC
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
Comment 4 Tom Tromey 2006-05-24 21:44:42 UTC
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

Comment 5 Tom Tromey 2006-05-24 21:45:53 UTC
Fixed in 4.2 now as well.