poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59734] Named range creation & lookup are linear in the number of ranges
Date Thu, 29 Sep 2016 00:17:11 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59734

--- Comment #5 from Greg Woolsey <greg.woolsey@gmail.com> ---
Where is the new dependency tracked for end users?  The change log?  For people
who don't use Maven or Ivy, it make come as a surprise that running their code
suddenly fails with a NoClassDefFound error (it just did for me, running a
local project with a local build of POI as a dependency).  I missed the commit
message, and had to go find this issue.

It doesn't seem that hard to implement using a normal HashMap, where the
desired name is upper or lower-cased between the user call and the map lookup.

It could be a Map<String, Map<String, Name>> construct, where the outer Map is
by sheet name.  Global names would be mapped under the null entry.

Request sheet and table names would be looked up in the internal map by upper
or lower case cannonicalization (null aware for sheets), and no special tuple
or Commons Collections class would be needed.

Was simplicity the only reason for adding the package dependency?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message