[FAST-6] MulticastInputStream wors incorrectly Created: 01/Sep/08  Updated: 24/Oct/08  Resolved: 24/Oct/08

Status: Resolved
Project: OpenFAST
Component/s: None
Affects Version/s: 0.9.8
Fix Version/s: 1.0.0

Type: Bug Priority: Critical
Reporter: Alexander Kosenkov Assignee: Jacob Northey
Resolution: Fixed Votes: 0
Labels: None


 Description   

MulticastInputStream extends InputStream and incorrectly implements

public int read() {
...
return buffer.get();
}

It should be:

public int read() {
...
return buffer.get() & 0xFF; // convert int to byte
}



 Comments   
Comment by Alexander Kosenkov [ 01/Sep/08 ]

Without this fix, MulticastInputStream in unusable. It returns values like -63 which are incorrectly treated as End Of Input by InputStream users

Comment by Jacob Northey [ 24/Oct/08 ]

This bug was fixed in the 1.0.0 version.

Generated at Wed Nov 27 16:17:44 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.