Bug 60271 - Handle collisions of Macro names
Summary: Handle collisions of Macro names
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: POIFS (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2016-10-18 16:52 UTC by Tim Allison
Modified: 2016-10-18 16:52 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Tim Allison 2016-10-18 16:52:02 UTC
While working on [Bug 59858], I found that there can be multiple copies of a macro with the same name.  Given that we're storing macros only by the macro name, this means that we might overwrite or skip macros with the same name.

If we want to maintain all macros, I propose that we store them as macroDir.getPath()+"\\"+macroName.

In 59858's test file, we'd have:


I'll leave this open for comment for a few days.  I'm not sure this is the best option...