Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 150216

Summary: Data are lost when we use Java BaseAgent.sendData(int, char[])
Product: z_Archived Reporter: Igor Alelekov <igor.alelekov>
Component: TPTPAssignee: Igor Alelekov <igor.alelekov>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: kiryl.kazakevich, samwai, stanislav.v.polevic
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460

Description Igor Alelekov CLA 2006-07-11 02:52:58 EDT
Size of char data type is 2 bytes in Java, but it is only 1 byte in C.
Buffer length returned by env->GetArrayLength equals to character numbers (not bytes!).
So function Java_org_eclipse_tptp_platform_execution_datacollection_BaseAgent_sendData0 (BaseAgentJNI.cpp module) loses half of sent bytes.
Comment 1 Guru Nagarajan CLA 2006-08-16 12:34:20 EDT
Igor has submitted the patch and I have tested this and it works. I will be updating the code base to reflect this and close this bug.
Comment 2 Guru Nagarajan CLA 2006-10-20 09:19:46 EDT
Targetted to i3
Comment 3 Guru Nagarajan CLA 2006-11-04 19:58:53 EST
Deferring since cannot be contained in 4.3
Comment 4 jkubasta CLA 2007-04-03 14:39:52 EDT
Not yet triaged
Comment 5 Stanislav Polevic CLA 2007-05-08 09:56:09 EDT
All required patches are attached to the Bug 150217.
Comment 6 Igor Alelekov CLA 2007-12-07 08:06:45 EST
Resolving as fixed
Comment 7 Paul Slauenwhite CLA 2007-12-19 07:58:54 EST
Please change the target to the 4.5 iteration when this Bugzilla was resolved.
Comment 8 Paul Slauenwhite CLA 2009-06-30 09:58:44 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since the originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.