1008 Commits

Author SHA1 Message Date
PJ Fanning
712c484a65 [bug-69658] use EnumMap in CellUtil
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925249 13f79535-47bb-0310-9956-ffa450edef68
2025-04-24 10:31:04 +00:00
PJ Fanning
694538aed0 commons-collections 4.5.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925238 13f79535-47bb-0310-9956-ffa450edef68
2025-04-23 19:44:41 +00:00
Dominik Stadler
0036655df4 ForbiddenApis: Adjust for deprecations in JDK 21+
Fix failures reported when raising the language level to 23
new URL() is deprecated
new Locale() is deprecated
still allow ThreadDeath and Thread.getId() for now to keep support for JDK 8

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925199 13f79535-47bb-0310-9956-ffa450edef68
2025-04-21 12:07:21 +00:00
Dominik Stadler
3d66281e6d Add more output to test to try to see why it fails now with JDK 23
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925189 13f79535-47bb-0310-9956-ffa450edef68
2025-04-21 08:51:08 +00:00
Dominik Stadler
85aa74414c Add test which populates cells with null string
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925187 13f79535-47bb-0310-9956-ffa450edef68
2025-04-21 08:51:02 +00:00
PJ Fanning
5c82a0890c build issues due to commons-io 2.19.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925059 13f79535-47bb-0310-9956-ffa450edef68
2025-04-12 18:56:26 +00:00
PJ Fanning
b3d0fe52d3 [bug-69628] more changes to getMax methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924994 13f79535-47bb-0310-9956-ffa450edef68
2025-04-10 13:58:44 +00:00
PJ Fanning
cdb8fad845 [bug-69628] in ZipArchiveFakeEntry, use min of IOUtils and ZipArchiveFakeEntry entry size limits
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924657 13f79535-47bb-0310-9956-ffa450edef68
2025-03-27 09:32:19 +00:00
PJ Fanning
f90274e518 [bug-69628] make IOUtils more tolerant of len < 0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924601 13f79535-47bb-0310-9956-ffa450edef68
2025-03-25 21:12:23 +00:00
PJ Fanning
d8a2bbb900 [bug-69628] make ZipArchiveFakeEntry.setMaxEntrySize publicly accessible
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924593 13f79535-47bb-0310-9956-ffa450edef68
2025-03-25 16:08:59 +00:00
PJ Fanning
a076204fac add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924539 13f79535-47bb-0310-9956-ffa450edef68
2025-03-23 20:59:01 +00:00
PJ Fanning
49aef015a8 fix test issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924535 13f79535-47bb-0310-9956-ffa450edef68
2025-03-23 11:17:30 +00:00
PJ Fanning
70a69a4917 partially revert cell toString changes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924534 13f79535-47bb-0310-9956-ffa450edef68
2025-03-23 11:00:33 +00:00
PJ Fanning
71dcabc947 partially revert cell toString changes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924533 13f79535-47bb-0310-9956-ffa450edef68
2025-03-23 10:59:43 +00:00
PJ Fanning
af040998f4 fix spelling of separate
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924321 13f79535-47bb-0310-9956-ffa450edef68
2025-03-11 23:44:59 +00:00
PJ Fanning
9e64e029e0 add datetime test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923882 13f79535-47bb-0310-9956-ffa450edef68
2025-02-17 20:34:51 +00:00
PJ Fanning
5b12033b99 add datetime test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923881 13f79535-47bb-0310-9956-ffa450edef68
2025-02-17 20:23:13 +00:00
PJ Fanning
7d87f1b5cd fix problem test (SXXSF)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923819 13f79535-47bb-0310-9956-ffa450edef68
2025-02-14 21:25:55 +00:00
PJ Fanning
41d42717d4 temp disable problem test (SXXSF)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923797 13f79535-47bb-0310-9956-ffa450edef68
2025-02-13 22:55:05 +00:00
PJ Fanning
3be17c823d fix some of the broken tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923796 13f79535-47bb-0310-9956-ffa450edef68
2025-02-13 22:21:51 +00:00
PJ Fanning
961c83fb4e fix some of the broken tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923795 13f79535-47bb-0310-9956-ffa450edef68
2025-02-13 22:03:23 +00:00
PJ Fanning
50dcbd390b fix some of the broken tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923794 13f79535-47bb-0310-9956-ffa450edef68
2025-02-13 21:40:26 +00:00
PJ Fanning
ca8014ebef refactor cell toString to use DataFormatter
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923790 13f79535-47bb-0310-9956-ffa450edef68
2025-02-13 20:24:17 +00:00
PJ Fanning
694765368e [bug-69583] DateUtil needs to handle time only dates (issue with 1900 format dates)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923785 13f79535-47bb-0310-9956-ffa450edef68
2025-02-13 12:34:38 +00:00
PJ Fanning
8ad10c0ed7 format
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923782 13f79535-47bb-0310-9956-ffa450edef68
2025-02-13 10:55:37 +00:00
PJ Fanning
3a3effca65 [bug-69583] when copying cells with dates - prefer using the numeric data directly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923780 13f79535-47bb-0310-9956-ffa450edef68
2025-02-13 10:53:16 +00:00
PJ Fanning
d6d403371a add some doc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923767 13f79535-47bb-0310-9956-ffa450edef68
2025-02-12 23:52:17 +00:00
PJ Fanning
bff0b98095 [bug-69583] when copying cells with dates - prefer using the numeric data directly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923766 13f79535-47bb-0310-9956-ffa450edef68
2025-02-12 22:09:44 +00:00
PJ Fanning
ed744e15b4 remove line
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923765 13f79535-47bb-0310-9956-ffa450edef68
2025-02-12 21:56:12 +00:00
PJ Fanning
79e5e6ae16 allow users supply a SheetUtil failover function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923467 13f79535-47bb-0310-9956-ffa450edef68
2025-01-30 22:29:43 +00:00
PJ Fanning
0f560377be allow users supply a SheetUtil failover function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923466 13f79535-47bb-0310-9956-ffa450edef68
2025-01-30 22:15:32 +00:00
PJ Fanning
43aded3d9c [bug-69555] need to work around inability to create a TextLayout in another place (caused by missing fonts most likely)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923445 13f79535-47bb-0310-9956-ffa450edef68
2025-01-29 17:24:30 +00:00
Dominik Stadler
1dbcea46d5 Some changes to the Gradle build
Apply IDE suggestions for Gradle build files
Remove obsolete sorting of gradle-wrapper.properties

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923284 13f79535-47bb-0310-9956-ffa450edef68
2025-01-20 20:05:58 +00:00
Axel Howind
c85e91e25c remove unused import
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923082 13f79535-47bb-0310-9956-ffa450edef68
2025-01-11 22:56:46 +00:00
Axel Howind
4962a04bbf Support long month names, dot after day, single digit day of month
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923081 13f79535-47bb-0310-9956-ffa450edef68
2025-01-11 22:46:10 +00:00
Dominik Stadler
0ab1ccc20a Ensure that test which changes static value does not run at the same time as other tests
Otherwise we get strange test-failures in other places.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923066 13f79535-47bb-0310-9956-ffa450edef68
2025-01-11 10:26:07 +00:00
Dominik Stadler
57afb34a18 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a NullPointerException

Fixes https://issues.oss-fuzz.com/issues/379574870

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923059 13f79535-47bb-0310-9956-ffa450edef68
2025-01-11 09:24:08 +00:00
Dominik Stadler
a4097e05aa Bug 65190: Handle decimal format '0#' the same way as Excel
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923056 13f79535-47bb-0310-9956-ffa450edef68
2025-01-11 09:23:55 +00:00
Dominik Stadler
38e7fe63a8 Apply IDE suggestions, code-formating, tests, ...
Add test for DefaultTempFileCreationStrategy
Adjust comments, add test, improve error message

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923054 13f79535-47bb-0310-9956-ffa450edef68
2025-01-11 09:23:46 +00:00
Dominik Stadler
147c034cfd Bug 58571: Add test which shows a workaround
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923053 13f79535-47bb-0310-9956-ffa450edef68
2025-01-11 09:23:39 +00:00
Dominik Stadler
4f21f5280a Bug 69265: Add test which verifies that Hyperlink Type "Email" is not supported for HSSF
Also update JavaDoc slightly to describe
the special handling of HyperlinkType.EMAIL

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923050 13f79535-47bb-0310-9956-ffa450edef68
2025-01-11 09:23:23 +00:00
PJ Fanning
018961ea77 try to fix temp file docs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922789 13f79535-47bb-0310-9956-ffa450edef68
2024-12-30 22:01:17 +00:00
PJ Fanning
75729edcea do not set deleteOnExit if sys prop set to false
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922788 13f79535-47bb-0310-9956-ffa450edef68
2024-12-30 21:48:22 +00:00
PJ Fanning
9951e8dfc1 try to fix temp file docs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922787 13f79535-47bb-0310-9956-ffa450edef68
2024-12-30 21:46:01 +00:00
Dominik Stadler
d7ca791ace Apply some spelling fixes from GitHub PR #480
Some suggested changes are too invasive so we
can only pick some changes semi-automatically

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922678 13f79535-47bb-0310-9956-ffa450edef68
2024-12-25 08:13:10 +00:00
Dominik Stadler
ba6b755107 Adjust for removed locale provider in JDK 23 and newer
JDK 23 removes the COMPAT/JRE locale provider
which causes some changes to string formatting

Some currency formatting relied on COMPAT to
format US-Dollar, we should override this to
keep the formatting the same way as Excel and
LibreOffice.

Also some tests for Chinese tried to work
around when COMPAT was used, this needs to
take JDK 23 into account when checking

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922500 13f79535-47bb-0310-9956-ffa450edef68
2024-12-14 18:53:03 +00:00
Dominik Stadler
1065c69004 Print out current locale.provider for some test-failures
JDK 24 will break things here and thus we should get more
information about which provider is used when running some tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922487 13f79535-47bb-0310-9956-ffa450edef68
2024-12-14 10:24:29 +00:00
PJ Fanning
c57f7a3b0e [github-735] POIFS: optimise occupied size calc. Thanks to Emmanuel Bourg. This closes #735
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922232 13f79535-47bb-0310-9956-ffa450edef68
2024-11-30 10:47:53 +00:00
PJ Fanning
d4c6cb4b53 add back 731 changes but increase gradle heap
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922162 13f79535-47bb-0310-9956-ffa450edef68
2024-11-27 13:32:39 +00:00
PJ Fanning
6d56d81f35 revert 731 because of suspicious mem issues in ci-builds
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922112 13f79535-47bb-0310-9956-ffa450edef68
2024-11-26 11:24:39 +00:00