Bug 40100 - FileServer does not support closing write access files
FileServer does not support closing write access files
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.1.2
Other other
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2006-07-24 09:38 UTC by Guillaume Lasnier
Modified: 2007-01-21 16:04 UTC (History)
0 users



Attachments
Test access type before closing (1.50 KB, patch)
2006-07-24 09:40 UTC, Guillaume Lasnier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Lasnier 2006-07-24 09:38:10 UTC
If a file is accessed using the FileServer class to be written using the write()
method, the close will fail with a ClassCastException.
Comment 1 Guillaume Lasnier 2006-07-24 09:40:32 UTC
Created attachment 18633 [details]
Test access type before closing

Upon close, check if the fileEntry is a read or write handle (java.io.Reader or
java.io.Writer).
Comment 2 Sebb 2007-01-21 16:04:06 UTC
Thanks! Finally added the fix to SVN.