[jboss-jira] [JBoss JIRA] Created: (JGRP-765) @Property: setting and getting properties need to set/get the actual variables
Bela Ban (JIRA)
jira-events at lists.jboss.org
Wed May 28 03:08:49 EDT 2008
@Property: setting and getting properties need to set/get the actual variables
------------------------------------------------------------------------------
Key: JGRP-765
URL: http://jira.jboss.com/jira/browse/JGRP-765
Project: JGroups
Issue Type: Bug
Reporter: Bela Ban
Assigned To: Bela Ban
Fix For: 2.7
When changing a variable through a setter, e.g. UDP.setMulticastPort(), the underlying 'props' properties hashmap is not changed, only the instance var is changed. When we now call JChannel.getProperties(), we get the old properties. This leads to duplicate channels with the SAME properties when creating unique channels in TestNG (ChannelTestBase). As a result, the channels are NOT unique, and we get test failures.
SOLUTION:
- When a set a property through a setter, we need to update the underlying properties hashmap too
- When we set a property in the properties hashmap, we need to update the instance variable too
- Ditto for getting values
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list