We're updating the issue view to help you get more done. 

remove the creaiton of duplicate instances of SupplementalDataInfo

Description

SupplementalDatainfo.java:
in the function getInstance, different instances of SupplementalDataInfo are stored in a map named directory_instance,where the keys are the Supplemental Data directories (in String form). The function will return a previously generated instance if its key exists in the map, otherwise a new one is made and added to the map. However duplicate instances of SupplementalDatainfo exist because there are different ways to represent a directory, for example "cldr\trunk\common\supplemental" is the same as "cldr\trunk\common\main\..\supplemental" and is also the same as "cldr\trunk\common\main/../supplemental/".

Look up the string.
If exists, return.
If there is nothing, canonicalize the file name, then look up again.
If exists, put original-string + result into map, and return.
If there is nothing
create
Put into the map the original string + result
Put into the map the canonical string + result

Environment

xpath

None

locale

None

Status

Assignee

TracBot

Reporter

TracBot

tracReporter

jali01

tracOwner

ribnitz

tracResolution

fixed

tracStatus

closed

Reviewer

Mark Davis

tracCreated

Nov 20, 2013, 6:36 PM

Components

Fix versions

Priority

medium