Community
Participate
Working Groups
The RosterGroup will display the contents of its IRosterEntries, and the RosterEntry will display information about the IRosterGroups it is is, so it goes on forever. Code below illustrates the problem: IRosterGroup group = new RosterGroup("Group Name"); IRosterEntry entry = new RosterEntry(IDFactory.getDefault() .createGUID(), IDFactory.getDefault().createGUID(), "Name"); group.add(entry); group.toString();
Created attachment 55457 [details] Project-level patch to change RosterEntry's toString() implementation. RosterEntry seemed like the logical choice to fix since for an IRosterGroup we would want the information about its entries, whereas for an IRosterEntry we probably just want its names (I guess?).
Fixed by removing printing of associated groups from RosterEntry.toString(). Thanks Remy for report.
Put in patch so groups would be displayed for RosterEntry.toString(). Probably overkill, but why not? :) Thanks Remy.
closing