This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 228957 - Wrong index used in SampleRegistrationService
Summary: Wrong index used in SampleRegistrationService
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: amehrega CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-25 17:34 EDT by amehrega CLA
Modified: 2012-01-03 13:48 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amehrega CLA 2008-04-25 17:34:04 EDT
SampleRegistrationService under org.eclipse.cosmos.example.mdr.registration.ws uses the wrong index in one of its loops:


					for (int j = 0; j < removedElements.length; j++)
					{
						if ( removedElements[i] != null ){
							IInstanceId sourceInsntanceId = ((IRelationship)removedElements[i]).getSourceId();
							repository.retrieveRelationshipBySource().remove(sourceInsntanceId);
						}
					}



removedElements[i] should be removedElements[j]
Comment 1 amehrega CLA 2008-06-10 11:55:48 EDT
Fix checked into CVS - HEAD.
Comment 2 amehrega CLA 2008-06-24 16:43:21 EDT
closing