Commit Graph

13185 Commits

Author SHA1 Message Date
Dominik Stadler f4af02bb24 Bug 68778: Verify "ignoreMissingFontSystem" for SheetUtil.getDefaultCharWidthAsFloat()
This functionality saw some regressions at times and thus
should be verified via unit-tests. 

We can simulate failures in the low-level font-system by 
mocking the FontRenderContext and triggering exceptions
from there.

This hopefully now verifies behavior of 
SheetUtil.getDefaultCharWidthAsFloat() both with 
"ignoreMissingFontSystem" enabled and disabled.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916297 13f79535-47bb-0310-9956-ffa450edef68
2024-03-14 13:20:47 +00:00
PJ Fanning 08436ddf7f upgrade commons-compress and log4j
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916233 13f79535-47bb-0310-9956-ffa450edef68
2024-03-11 17:48:11 +00:00
PJ Fanning 56692aa84c add javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916150 13f79535-47bb-0310-9956-ffa450edef68
2024-03-06 12:22:34 +00:00
PJ Fanning 6e01fe6e2a remove annotation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916149 13f79535-47bb-0310-9956-ffa450edef68
2024-03-06 12:20:46 +00:00
PJ Fanning 45b2ecb20a deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916147 13f79535-47bb-0310-9956-ffa450edef68
2024-03-06 11:57:53 +00:00
PJ Fanning d0a5b622ca [github-604] XDGF: add support for poly lines. Thanks to Dmitrii Komarov. This closes #604
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916146 13f79535-47bb-0310-9956-ffa450edef68
2024-03-06 11:53:17 +00:00
PJ Fanning baae7b0301 [github-601] XDGF: handle elliptical arcs that have colinear points. Thanks to Dmitrii Komarov. This closes #601
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916144 13f79535-47bb-0310-9956-ffa450edef68
2024-03-06 11:13:01 +00:00
PJ Fanning 9d3531842b rework test state
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916143 13f79535-47bb-0310-9956-ffa450edef68
2024-03-06 10:49:07 +00:00
PJ Fanning 30ff717be4 gradle 8.6
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916114 13f79535-47bb-0310-9956-ffa450edef68
2024-03-05 00:13:09 +00:00
PJ Fanning a3488f6c39 [bug-68703] fix issue with XSLFTextRuns in XSLFTableCells
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916108 13f79535-47bb-0310-9956-ffa450edef68
2024-03-04 14:56:20 +00:00
PJ Fanning db63599833 [bug-68703] revert fix issue with XSLFTextRuns in XSLFTableCells
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916106 13f79535-47bb-0310-9956-ffa450edef68
2024-03-04 14:01:46 +00:00
PJ Fanning 1c156c4005 [bug-68703] fix issue with XSLFTextRuns in XSLFTableCells
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916105 13f79535-47bb-0310-9956-ffa450edef68
2024-03-04 12:49:02 +00:00
Axel Howind 9d14f3f9ee enable gradle caching again
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916038 13f79535-47bb-0310-9956-ffa450edef68
2024-02-28 09:42:29 +00:00
Axel Howind 9e425e1c5b use diamond operator
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916036 13f79535-47bb-0310-9956-ffa450edef68
2024-02-28 09:35:51 +00:00
Axel Howind 263171f80e use method reference
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916035 13f79535-47bb-0310-9956-ffa450edef68
2024-02-28 09:35:49 +00:00
Axel Howind 6b40b7f966 use Map.computeIfAbsent()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916034 13f79535-47bb-0310-9956-ffa450edef68
2024-02-28 09:35:46 +00:00
PJ Fanning 2496ce5229 rework tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916017 13f79535-47bb-0310-9956-ffa450edef68
2024-02-26 23:05:36 +00:00
PJ Fanning 025c904695 woodstox 6.6.1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916016 13f79535-47bb-0310-9956-ffa450edef68
2024-02-26 22:44:31 +00:00
Axel Howind 05af0e0bf3 Math.toIntExact is unnecessary because value is guaranteed to be between 0 and 15
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915959 13f79535-47bb-0310-9956-ffa450edef68
2024-02-22 20:56:03 +00:00
Axel Howind 17c6a1ec50 replace List<Byte> with ByteArrayOutputStream to avoid boxing/unboxing and repeated copying of data
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915958 13f79535-47bb-0310-9956-ffa450edef68
2024-02-22 20:48:04 +00:00
PJ Fanning e5e22bb1f2 xmlsec 3.0.4
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915955 13f79535-47bb-0310-9956-ffa450edef68
2024-02-22 17:27:45 +00:00
Axel Howind e65e666ece do not write single bytes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915953 13f79535-47bb-0310-9956-ffa450edef68
2024-02-22 15:44:31 +00:00
Axel Howind 39a1ced25e fix Logging issues:
- don't use foreign class in Logger initialization
- update log statements to use MessageFormat syntax

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915930 13f79535-47bb-0310-9956-ffa450edef68
2024-02-21 21:28:04 +00:00
Axel Howind cb10857970 make loggers static final
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915929 13f79535-47bb-0310-9956-ffa450edef68
2024-02-21 21:04:58 +00:00
PJ Fanning 28fc73b046 log4j 2.23.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915917 13f79535-47bb-0310-9956-ffa450edef68
2024-02-21 10:52:18 +00:00
Axel Howind 386ddb8e6b move setting of locale for tests to top level build.gradle
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915910 13f79535-47bb-0310-9956-ffa450edef68
2024-02-20 22:48:53 +00:00
Dominik Stadler 1bb5f644f1 Fix Ant-build after upgrade of commons-compress
Commons-lang3 is now required as dependency of commons-compress

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915909 13f79535-47bb-0310-9956-ffa450edef68
2024-02-20 21:09:48 +00:00
Dominik Stadler b7bf336453 Jenkins DSL: Use sonar-task and sonar.token instead of sonar.login
This removes some build-warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915908 13f79535-47bb-0310-9956-ffa450edef68
2024-02-20 21:09:44 +00:00
Dominik Stadler b4a2bc084e Switch builds for JDK 22 and 23 to Ant for now
Gradle does not yet support newer JDKs

See https://docs.gradle.org/current/userguide/compatibility.html
and https://github.com/gradle/gradle/issues/26162

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915907 13f79535-47bb-0310-9956-ffa450edef68
2024-02-20 21:06:41 +00:00
PJ Fanning 3817f138f8 try to fix issue with invalid files after commons-compress upgrade
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915895 13f79535-47bb-0310-9956-ffa450edef68
2024-02-20 16:31:04 +00:00
PJ Fanning fded4957db commons-compress 1.26.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915892 13f79535-47bb-0310-9956-ffa450edef68
2024-02-20 12:01:15 +00:00
PJ Fanning d59d6b7d7d [github-596] Change cast logic in HSSFChart. Thanks to Ruby Hartono. This closes #596
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915881 13f79535-47bb-0310-9956-ffa450edef68
2024-02-19 20:11:45 +00:00
PJ Fanning 23ed93817f remove unused loggers. Thanks to Ruby Hartono. This closes #594 and closes #595
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915870 13f79535-47bb-0310-9956-ffa450edef68
2024-02-19 10:10:57 +00:00
Axel Howind 63899a8810 fix #68635: POI unit tests fail when run under non-US locale
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915827 13f79535-47bb-0310-9956-ffa450edef68
2024-02-17 15:47:46 +00:00
PJ Fanning c871bb7b9f remove unused loggers - thanks to Ruby Hartono. This closes #588 and closes #589
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915819 13f79535-47bb-0310-9956-ffa450edef68
2024-02-16 15:25:24 +00:00
PJ Fanning dc025d9365 [github-590] simplify some logging. This closes #590
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915818 13f79535-47bb-0310-9956-ffa450edef68
2024-02-16 15:12:54 +00:00
PJ Fanning 99ec2c6c0f byte buddy 1.14.12
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915817 13f79535-47bb-0310-9956-ffa450edef68
2024-02-16 15:05:18 +00:00
PJ Fanning 6a8994ee0e try to fix poi-scratchpad test module-info
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915701 13f79535-47bb-0310-9956-ffa450edef68
2024-02-10 01:27:06 +00:00
PJ Fanning 3b7a01b804 Upgrade commons-codec dependency to 1.16.1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915695 13f79535-47bb-0310-9956-ffa450edef68
2024-02-09 16:38:15 +00:00
PJ Fanning b5c1a6644c junit 5.10.2
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915600 13f79535-47bb-0310-9956-ffa450edef68
2024-02-06 20:18:31 +00:00
PJ Fanning 9994816676 slf4j 2.0.12
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915599 13f79535-47bb-0310-9956-ffa450edef68
2024-02-06 20:17:13 +00:00
PJ Fanning 2469b89ee6 [github-582] improve performance CodepointsUtil.iteratorFor. Thanks to Jason Mirra. This closes #582
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915572 13f79535-47bb-0310-9956-ffa450edef68
2024-02-03 21:06:38 +00:00
PJ Fanning e455798019 remove one use of CodepointsUtil.iteratorFor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915571 13f79535-47bb-0310-9956-ffa450edef68
2024-02-03 20:20:40 +00:00
Dominik Stadler e0d446c533 Switch builds for JDK 22 and 23 to Ant for now
Gradle does not yet support newer JDKs

See https://docs.gradle.org/current/userguide/compatibility.html
and https://github.com/gradle/gradle/issues/26162

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915505 13f79535-47bb-0310-9956-ffa450edef68
2024-02-01 06:38:54 +00:00
Dominik Stadler 3b5a9b07c4 SonarQube demands at least JDK 17 now
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915504 13f79535-47bb-0310-9956-ffa450edef68
2024-02-01 06:38:51 +00:00
Dominik Stadler 1bfcae1ac3 Jenknins DSL: Remove builds for JDK 15 and 16
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915503 13f79535-47bb-0310-9956-ffa450edef68
2024-02-01 06:38:49 +00:00
Dominik Stadler 1fd07c94af SonarQube demands at least JDK 17 now
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915483 13f79535-47bb-0310-9956-ffa450edef68
2024-01-30 21:28:48 +00:00
Dominik Stadler 209e8fc659 Fix handling missing font libraries to again not throw on some types of exception
The previous change broke this handling by always re-throwing "Fatal" exceptions.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915482 13f79535-47bb-0310-9956-ffa450edef68
2024-01-30 21:01:53 +00:00
Dominik Stadler e696053e23 Use latest version of rat and rat-plugin
In Gradle builds, this will still use rat 0.15.0, though
as the plugin hardcodes the version of rat that is used.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915481 13f79535-47bb-0310-9956-ffa450edef68
2024-01-30 21:01:49 +00:00
Dominik Stadler 147c96da67 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a few NullPointerException

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65450 and
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63907 and
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63727

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915480 13f79535-47bb-0310-9956-ffa450edef68
2024-01-30 21:01:46 +00:00