Anonymous | Login | Signup for a new account | 11-21-2024 16:14 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0003692 | [Hessian] | minor | always | 09-22-09 11:39 | 01-12-11 18:31 | |||||||
Reporter | lcwik | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | |||||||||
Status | new | Product Version | 4.0.1 | |||||||||
Summary | 0003692: MicroHessianOutput writeBytes wrong size | |||||||||||
Description | MicroHessianOutput writeBytes incorrectly encodes the size of the array into the stream. The "<<" is the wrong way. | |||||||||||
Additional Information |
Fix: public void writeBytes(byte []buffer, int offset, int length) throws IOException { if (buffer == null) { os.write('N'); } else { os.write('B'); os.write(length >> 8); os.write(length); os.write(buffer, offset, length); } Previously: public void writeBytes(byte []buffer, int offset, int length) throws IOException { if (buffer == null) { os.write('N'); } else { os.write('B'); os.write(length << 8); os.write(length); os.write(buffer, offset, length); } |
|||||||||||
Attached Files | ||||||||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
09-22-09 11:39 | lcwik | New Issue | |
01-12-11 18:31 | cfreyer | Note Added: 0004925 | |
01-12-11 18:31 | cfreyer | Note Edited: 0004925 |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |