hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1135) RandomAccessFile mode "w" is not valid
Date Fri, 07 Oct 2011 21:10:29 GMT
RandomAccessFile mode "w" is not valid
--------------------------------------

                 Key: HTTPCLIENT-1135
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1135
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: Cache
    Affects Versions: 4.1.2
         Environment: Android
            Reporter: Craig
            Priority: Critical


According to the Java docs for RandomAccessFile, mode must be "r" "rw" "rws" or "rwd" - anything
else results in an IllegalArgumentException. It seems that Sun/Oracle/OpenJDK's don't document
it, but supports "w" mode that is equivalent to "rw" Android does as the Javadocs say, and
throws an IllegalArgumentException when mode "w" is passed as HttpClientCache does IOUtils.copyFile()
(line 70-71).

This means that HttpClient Cache does not work on Android.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message