From: SourceForge.net <no...@so...> - 2008-11-27 14:12:39
|
Bugs item #2353673, was opened at 2008-11-27 15:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=631664&aid=2353673&group_id=102341 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: tinyTiM 2.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Lars Heuer (lheuer) Assigned to: Lars Heuer (lheuer) Summary: Locator.resolve returns new Locator objects (no flyweights) Initial Comment: Locator.resolve(String) returns a new Locator instance in any case: Locator base = topicMap.createLocator("http://www.semagia.com/"); Locator loc1 = base.resolve("#test"); Locator loc2 = base.resolve("#test"); assertEquals(loc1, loc2) ==> true assertSame(loc1, loc2) ==> false (<--- this should be true) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=631664&aid=2353673&group_id=102341 |