[kepler-dev] BinaryFileReader bug.

Tristan King tristan.king at jcu.edu.au
Wed Feb 22 20:29:13 PST 2006

There is a small bug with the BinaryFileReader, the postfire() method
broadcasts 2 tokens (one true, one false) everytime it completes a file.

I fixed this by encapsulating the
endOfFile.broadcast(BooleanToken.FALSE); on line 185 in an else
statement so the function goes something like this:

if (nBytesRead <= 0) {
} else {

Let me know if this is an adequate fix.

Tristan King                            | Ph: (07) 4781 6911
DART project team                       | Email: Tristan.King at jcu.edu.au
James Cook University                   | Web: http://dart.edu.au
Townsville QLD 4814                     | http://plone.jcu.edu.au/dart/
Australia                               |

More information about the Kepler-dev mailing list