Bug in kjas, behaviour of kjas vs plain java

Stefan Brüns lurchi at kawo1.rwth-aachen.de
Mon Sep 19 01:47:12 BST 2005


Hi,

I found a difference of behaviour between kjas using kio and plain java.

Although it is stated that the openConnection method of an 
java.net.URLConnection does not fetch any data from a server, it is also 
stated [1] that "Operations that depend on being connected, like 
getContentLength, will implicitly perform the connection, if necessary."

I have attached a patch that will change this.

Tested with http://www.petzall.se/daap/ (which now works), and many applets on 
sun's page (which worked already before).

[1] 
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLConnection.html#connect()
-- 
Stefan Brüns  /  Kastanienweg 6 - Zimmer 1206  /  52074 Aachen
mailto:lurch at gmx.li  http://www.kawo1.rwth-aachen.de/~lurchi/
   phone: +49 241 169-4206     mobile: +49 160 3797725
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KJAS_connect_fix.diff.zip
Type: application/x-zip
Size: 715 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050919/473a808a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050919/473a808a/attachment.sig>


More information about the kfm-devel mailing list