|[cdt-dev] Proposed work-around patch for bug 242955|
Looking at the .cproject file created, there is a problem because there are two cconfiguration elements with the same id. The first is my modified active configuration and the 2nd is the default configuration with default settings. The method createCfgStorages in CProjectDescriptionManager uses a LinkedHashMap where it adds elements by id. The 2nd cconfiguration causes it to overwrite the first and so we never see the new one again.
My work-around patches CProjectDescriptionManager.createCfgStorages so when it is creating its map, it does not replace an existing configuration it has already added with a particular id. This solves the problem found in the .cproject file, but it does not address why the 2nd cconfiguration element is there in the first-place so I am posting this as a work-around patch.
-- Jeff J.
Back to the top