harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2411) [luni]java.net.URLConnection.guessContentTypeFromName(String) returns null while RI returns valid value
Date Wed, 31 Jan 2007 13:04:07 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexei Zakharov closed HARMONY-2411.
------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Alexei Zakharov

I am unable to reproduce this on the latest Harmony build. Closed as Cannot Reproduce.

> [luni]java.net.URLConnection.guessContentTypeFromName(String) returns null while RI returns
valid value
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2411
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2411
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>
> Harmony returns null for
> java.net.URLConnection.guessContentTypeFromName(String)while RI returns valid
> result.
> Test for reproducing:
> import junit.framework.TestCase;
> import java.net.*;
> public class test extends TestCase {
>         public void testcase0() {
>                 String returnValue =
> URLConnection.guessContentTypeFromName("notAccessed.zip");
>                
> System.out.println("URLConnection.guessContentTypeFromName="+returnValue);
>                 assertNotNull(returnValue);
>         }
> }
> OUTPUT:
> DEV :
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software
> Foundatio
> n or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = rsvn: '.' is not a working copy, (Sep 29 2006), Windows/ia32/msvc 1310,
> de
> bug build
> http://incubator.apache.org/harmony
> .HttpURLConnection.guessContentTypeFromName=null
> F
> Time: 0.234
> There was 1 failure:
> 1) testcase0(test)junit.framework.AssertionFailedError
>         at test.testcase0(test.java:8)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message