markcorn / libs-for-android

Automatically exported from code.google.com/p/libs-for-android
Apache License 2.0
0 stars 0 forks source link

Add support for non-HTTP requests to FileResponseCache #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Mixing FileResponseCache with other users of java.net.ResponseCache 
2. The foreign UrlConnection class (that does not extend HttpUrlConnection) 
opens a connection and then invokes responseCache.put(uri, this)
3. FileResponseCache#isCacheable throws a class cast exception

What is the expected output? What do you see instead?
 The #put() method should return null if it doesn't want to cache non-http urls. There is an unchecked cast there.

What version of the product are you using? On what operating system?
 Revision 132 of filecache.jar

Original issue reported on code.google.com by d.leon...@speedwell.com.au on 21 Mar 2011 at 12:07

GoogleCodeExporter commented 8 years ago

Original comment by pbald...@google.com on 21 Mar 2011 at 5:26