Sync from SUSE:SLFO:Main jackson-core revision 5a0542be283c5b67e827883a957e4ea7

This commit is contained in:
Adrian Schröter 2025-02-25 19:24:37 +01:00
parent 10e2dce764
commit 23f976afb4
5 changed files with 174 additions and 211 deletions

BIN
jackson-core-2.17.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
jackson-core-2.17.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -11,7 +11,7 @@
<property name="project.groupId" value="com.fasterxml.jackson.core"/> <property name="project.groupId" value="com.fasterxml.jackson.core"/>
<property name="project.artifactId" value="jackson-core"/> <property name="project.artifactId" value="jackson-core"/>
<property name="project.name" value="Jackson-core"/> <property name="project.name" value="Jackson-core"/>
<property name="project.version" value="2.17.1"/> <property name="project.version" value="2.17.3"/>
<property name="project.vendor" value="FasterXML"/> <property name="project.vendor" value="FasterXML"/>
<property name="project.description" value="Core Jackson processing abstractions (aka Streaming API), implementation for JSON"/> <property name="project.description" value="Core Jackson processing abstractions (aka Streaming API), implementation for JSON"/>
<property name="bundle.version" value="${project.version}"/> <property name="bundle.version" value="${project.version}"/>
@ -25,10 +25,8 @@
<property name="build.outputDir" value="${build.dir}/classes"/> <property name="build.outputDir" value="${build.dir}/classes"/>
<property name="build.srcDir" value="src/main/java"/> <property name="build.srcDir" value="src/main/java"/>
<property name="build.resourceDir" value="src/main/resources"/> <property name="build.resourceDir" value="src/main/resources"/>
<property name="build.testOutputDir" value="${build.dir}/test-classes"/> <property name="build.moditectDir" value="src/moditect"/>
<property name="build.testDir" value="src/test/java"/>
<property name="build.testResourceDir" value="src/test/resources"/>
<property name="test.reports" value="${build.dir}/test-reports"/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/> <property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ====================================================================== --> <!-- ====================================================================== -->
@ -36,11 +34,6 @@
<!-- ====================================================================== --> <!-- ====================================================================== -->
<path id="build.classpath"/> <path id="build.classpath"/>
<path id="build.test.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- ====================================================================== --> <!-- ====================================================================== -->
<!-- Cleaning up target --> <!-- Cleaning up target -->
@ -89,101 +82,26 @@
</src> </src>
<classpath refid="build.classpath"/> <classpath refid="build.classpath"/>
</javac> </javac>
<copy todir="${build.outputDir}"> <javac destdir="${build.outputDir}"
<fileset dir="${build.resourceDir}"/>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Test-compilation target -->
<!-- ====================================================================== -->
<target name="compile-tests"
depends="compile"
description="Compile the test code"
unless="test.skip">
<mkdir dir="${build.testOutputDir}"/>
<javac destdir="${build.testOutputDir}"
nowarn="false" nowarn="false"
debug="true" debug="true"
optimize="false" optimize="false"
deprecation="true" deprecation="true"
release="${compiler.release}" release="9"
target="${compiler.target}"
verbose="false" verbose="false"
fork="false" fork="false"
source="${compiler.source}"> encoding="utf-8">
<src> <src>
<pathelement location="${build.testDir}"/> <pathelement location="${build.moditectDir}"/>
</src> </src>
<classpath> <modulepath>
<path refid="build.test.classpath"/> <path refid="build.classpath"/>
<pathelement location="${build.outputDir}"/> <pathelement location="${build.outputDir}"/>
</classpath> </modulepath>
</javac> </javac>
</target> <copy todir="${build.outputDir}">
<fileset dir="${build.resourceDir}"/>
<!-- ====================================================================== --> </copy>
<!-- Run all tests -->
<!-- ====================================================================== -->
<target name="test"
depends="compile-tests, junit-missing"
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${test.reports}"/>
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${build.outputDir}"/>
<pathelement location="${build.testOutputDir}"/>
</classpath>
<batchtest todir="${test.reports}" unless="test">
<fileset dir="${build.testDir}">
<include name="**/Test*.java"/>
<include name="**/*Test.java"/>
<include name="**/*TestCase.java"/>
<exclude name="**/*Abstract*Test.java"/>
</fileset>
</batchtest>
<batchtest todir="${test.reports}" if="test">
<fileset dir="${build.testDir}">
<include name="**/${test}.java"/>
<exclude name="**/*Abstract*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-junit-present">
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/>
</target>
<target name="test-junit-status"
depends="test-junit-present">
<condition property="junit.missing">
<and>
<isfalse value="${junit.present}"/>
<isfalse value="${test.skip}"/>
</and>
</condition>
<condition property="junit.skipped">
<or>
<isfalse value="${junit.present}"/>
<istrue value="${test.skip}"/>
</or>
</condition>
</target>
<target name="junit-missing"
depends="test-junit-status"
if="junit.missing">
<echo>=================================== WARNING ===================================</echo>
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo>
<echo>===============================================================================</echo>
</target> </target>
<!-- ====================================================================== --> <!-- ====================================================================== -->
@ -213,6 +131,7 @@
linksource="false" linksource="false"
breakiterator="false" breakiterator="false"
maxmemory="1g"> maxmemory="1g">
<arg value="-notimestamp"/>
</javadoc> </javadoc>
</target> </target>
@ -220,7 +139,7 @@
<!-- Package target --> <!-- Package target -->
<!-- ====================================================================== --> <!-- ====================================================================== -->
<target name="package" depends="compile,test" description="Package the application"> <target name="package" depends="compile" description="Package the application">
<jar jarfile="${build.dir}/${build.finalName}.jar" <jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true" compress="true"
index="false" index="false"

View File

@ -1,44 +1,69 @@
-------------------------------------------------------------------
Wed Nov 6 07:49:57 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Update to 2.17.3
* #1331: Update to FastDoubleParser v1.0.1 to fix 'BigDecimal'
decoding problem
* #1340: Missing 'JsonFactory' "provides" SPI with JPMS in
'jackson-core' module
* #1352: Fix infinite loop due to integer overflow when reading
large strings
-------------------------------------------------------------------
Thu Oct 10 13:48:21 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Build the module-info.java source too (with release=9)
-------------------------------------------------------------------
Wed Aug 7 08:55:44 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Update to 2.17.2
* #1308: Relax validation by 'NumberInput.looksLikeValidNumber()'
to allow trailing dot (like '3.')
-------------------------------------------------------------------
Wed Jul 17 12:47:49 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Reproducible builds: generate javadoc without timestamps
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 20 12:29:23 UTC 2024 - Gus Kenion <gus.kenion@suse.com> Mon May 20 12:29:23 UTC 2024 - Gus Kenion <gus.kenion@suse.com>
- Update to 2.17.1 - Update to 2.17.1
* #1241: Fix `NumberInput.looksLikeValidNumber()` implementation * #1241: Fix 'NumberInput.looksLikeValidNumber()' implementation
(contributed by @pjfanning)
* #1256: Revert #1117: change default recycler pool back to * #1256: Revert #1117: change default recycler pool back to
`threadLocalPool()` for 2.17.1 'threadLocalPool()' for 2.17.1
- Includes changes from 2.17.0 - Includes changes from 2.17.0
* #507: Add `JsonWriteFeature.ESCAPE_FORWARD_SLASHES` to allow * #507: Add 'JsonWriteFeature.ESCAPE_FORWARD_SLASHES' to allow
escaping of '/' for String values (contributed by Joo-Hyuk K) escaping of '/' for String values
* #1117: Change default `RecylerPool` implementation to * #1117: Change default 'RecylerPool' implementation to
`newLockFreePool` (from `threadLocalPool`) 'newLockFreePool' (from 'threadLocalPool')
* #1137: Improve detection of "is a NaN" to only consider * #1137: Improve detection of "is a NaN" to only consider
explicit cases, not `double` overflow/underflow explicit cases, not 'double' overflow/underflow
* #1145: `JsonPointer.appendProperty(String)` does not escape the * #1145: 'JsonPointer.appendProperty(String)' does not escape the
property name (reported by Robert E) property name
* #1149: Add `JsonParser.getNumberTypeFP()` * #1149: Add 'JsonParser.getNumberTypeFP()'
* #1157: Use fast parser (FDP) for large `BigDecimal`s (500+ * #1157: Use fast parser (FDP) for large 'BigDecimal's (500+
chars) (contributed by @pjfanning) chars)
* #1169: `ArrayIndexOutOfBoundsException` for specific invalid * #1169: 'ArrayIndexOutOfBoundsException' for specific invalid
content, with Reader-based parser content, with Reader-based parser
* #1173: `JsonLocation` consistently off by one character for * #1173: 'JsonLocation' consistently off by one character for
many invalid JSON parsing cases (reported by Paul B) many invalid JSON parsing cases
* #1179: Allow configuring `DefaultPrettyPrinter` separators for * #1179: Allow configuring 'DefaultPrettyPrinter' separators for
empty Arrays and Objects (contributed by Guillaume L) empty Arrays and Objects
* #1186: `BufferRecycler` should avoid setting replacement if one * #1186: 'BufferRecycler' should avoid setting replacement if one
already returned, bigger (suggested by @kkkkkhhhh) already returned, bigger
* #1195: Use `BufferRecycler` provided by output (`OutputStream`, * #1195: Use 'BufferRecycler' provided by output ('OutputStream',
`Writer`) object if available (contributed by Mario F) 'Writer') object if available
* #1202: Add `RecyclerPool.clear()` method for dropping all * #1202: Add 'RecyclerPool.clear()' method for dropping all
pooled Objects pooled Objects
* #1203: Faster division by 1000 (contributed by @xtonik) * #1203: Faster division by 1000
* #1205: * #1205:
JsonFactory.setStreamReadConstraints(StreamReadConstraints) JsonFactory.setStreamReadConstraints(StreamReadConstraints)
fails to update "maxNameLength" for symbol tables (reported by fails to update "maxNameLength" for symbol tables
@denizk) * #1217: Optimize char comparison using bitwise OR
* #1217: Optimize char comparison using bitwise OR (contributed
by @xtonik)
* #1218: Simplify Unicode surrogate pair conversion for * #1218: Simplify Unicode surrogate pair conversion for
generation (contributed by @xtonik) generation
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 8 08:33:47 UTC 2024 - Gus Kenion <gkenion@suse.com> Fri Mar 8 08:33:47 UTC 2024 - Gus Kenion <gkenion@suse.com>
@ -46,26 +71,41 @@ Fri Mar 8 08:33:47 UTC 2024 - Gus Kenion <gkenion@suse.com>
- Update to 2.16.1 - Update to 2.16.1
* 2.16.1 (24-Dec-2023) * 2.16.1 (24-Dec-2023)
+ #1141: NPE in Version.equals() if snapshot-info null + #1141: NPE in Version.equals() if snapshot-info null
+ #1161: NPE in "FastDoubleParser", method "JavaBigDecimalParser.parseBigDecimal()" + #1161: NPE in "FastDoubleParser", method
+ #1168: JsonPointer.append(JsonPointer.tail()) includes the original pointer "JavaBigDecimalParser.parseBigDecimal()"
+ #1168: JsonPointer.append(JsonPointer.tail()) includes the
original pointer
* 2.16.0 (15-Nov-2023) * 2.16.0 (15-Nov-2023)
+ #991: Change StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION default to false in Jackson 2.16 + #991: Change StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION
+ #1007: Improve error message for StreamReadConstraints violations default to false in Jackson 2.16
+ #1015: JsonFactory implementations should respect CANONICALIZE_FIELD_NAMES + #1007: Improve error message for StreamReadConstraints
+ #1035: Root cause for failing test for testMangledIntsBytes() in ParserErrorHandlingTest violations
+ #1015: JsonFactory implementations should respect
CANONICALIZE_FIELD_NAMES
+ #1035: Root cause for failing test for testMangledIntsBytes()
in ParserErrorHandlingTest
+ #1036: Allow all array elements in JsonPointerBasedFilter + #1036: Allow all array elements in JsonPointerBasedFilter
+ #1039: Indicate explicitly blocked sources as "REDACTED" instead of "UNKNOWN" in JsonLocation + #1039: Indicate explicitly blocked sources as "REDACTED"
instead of "UNKNOWN" in JsonLocation
+ #1041: Start using AssertJ in unit tests + #1041: Start using AssertJ in unit tests
+ #1042: Allow configuring spaces before and/or after the colon in DefaultPrettyPrinter (for Canonical JSON) + #1042: Allow configuring spaces before and/or after the colon
+ #1046: Add configurable limit for the maximum number of bytes/chars of content to parse before failing in DefaultPrettyPrinter (for Canonical JSON)
+ #1047: Add configurable limit for the maximum length of Object property names to parse before failing + #1046: Add configurable limit for the maximum number of
+ #1048: Add configurable processing limits for JSON generator (StreamWriteConstraints) bytes/chars of content to parse before failing
+ #1047: Add configurable limit for the maximum length of Object
property names to parse before failing
+ #1048: Add configurable processing limits for JSON generator
(StreamWriteConstraints)
+ #1050: Compare _snapshotInfo in Version + #1050: Compare _snapshotInfo in Version
+ #1051: Add JsonGeneratorDecorator to allow decorating JsonGenerators + #1051: Add JsonGeneratorDecorator to allow decorating
JsonGenerators
+ #1064: Add full set of BufferRecyclerPool implementations + #1064: Add full set of BufferRecyclerPool implementations
+ #1066: Add configurable error report behavior via ErrorReportConfiguration + #1066: Add configurable error report behavior via
+ #1081: Make ByteSourceJsonBootstrapper use StringReader for < 8KiB byte[] inputs ErrorReportConfiguration
+ #1089: Allow pluggable buffer recycling via new RecyclerPool extension point + #1081: Make ByteSourceJsonBootstrapper use StringReader
for < 8KiB byte[] inputs
+ #1089: Allow pluggable buffer recycling via new RecyclerPool
extension point
+ #1136: Change parsing error message to mention -INF + #1136: Change parsing error message to mention -INF
------------------------------------------------------------------- -------------------------------------------------------------------

View File

@ -16,8 +16,11 @@
# #
# The automatic requires would be java-headless >= 9, but the
# binaries are java 8 compatible
%define __requires_exclude java-headless
Name: jackson-core Name: jackson-core
Version: 2.17.1 Version: 2.17.3
Release: 0 Release: 0
Summary: Core part of Jackson Summary: Core part of Jackson
License: Apache-2.0 License: Apache-2.0
@ -28,8 +31,9 @@ Source1: %{name}-build.xml
Patch0: 0001-Remove-ch.randelshofer.fastdoubleparser.patch Patch0: 0001-Remove-ch.randelshofer.fastdoubleparser.patch
BuildRequires: ant BuildRequires: ant
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 9
BuildRequires: javapackages-local >= 6 BuildRequires: javapackages-local >= 6
Requires: java-headless >= 1.8
BuildArch: noarch BuildArch: noarch
%description %description
@ -51,7 +55,7 @@ cp %{SOURCE1} build.xml
%build %build
mkdir -p lib mkdir -p lib
%{ant} -Dtest.skip=true package javadoc ant package javadoc
%install %install
install -dm 0755 %{buildroot}%{_javadir} install -dm 0755 %{buildroot}%{_javadir}