Skip to content

Commit bf2c7a9

Browse files
authored
Merge pull request #6108 from dmatej/jackson2914update
Updated Jackson to 2.19.4 for 3.1+
2 parents bc44e9e + 04bf1bf commit bf2c7a9

5 files changed

Lines changed: 160 additions & 155 deletions

File tree

NOTICE.md

Lines changed: 113 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,113 @@
1-
# Notice for Jersey
2-
This content is produced and maintained by the Eclipse Jersey project.
3-
4-
* Project home: https://projects.eclipse.org/projects/ee4j.jersey
5-
6-
## Trademarks
7-
Eclipse Jersey is a trademark of the Eclipse Foundation.
8-
9-
## Copyright
10-
11-
All content is the property of the respective authors or their employers. For
12-
more information regarding authorship of content, please consult the listed
13-
source code repository logs.
14-
15-
## Declared Project Licenses
16-
17-
This program and the accompanying materials are made available under the terms
18-
of the Eclipse Public License v. 2.0 which is available at
19-
http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made
20-
available under the following Secondary Licenses when the conditions for such
21-
availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU
22-
General Public License, version 2 with the GNU Classpath Exception which is
23-
available at https://www.gnu.org/software/classpath/license.html.
24-
25-
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
26-
27-
## Source Code
28-
The project maintains the following source code repositories:
29-
30-
* https://github.com/eclipse-ee4j/jersey
31-
32-
## Third-party Content
33-
34-
Angular JS, v1.6.6
35-
* License MIT (http://www.opensource.org/licenses/mit-license.php)
36-
* Project: http://angularjs.org
37-
* Coyright: (c) 2010-2017 Google, Inc.
38-
39-
aopalliance Version 1
40-
* License: all the source code provided by AOP Alliance is Public Domain.
41-
* Project: http://aopalliance.sourceforge.net
42-
* Copyright: Material in the public domain is not protected by copyright
43-
44-
Bean Validation API 3.0.2
45-
* License: Apache License, 2.0
46-
* Project: https://projects.eclipse.org/projects/ee4j.bean-validation
47-
* Copyright: 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
48-
* by the @authors tag.
49-
50-
Hibernate Validator CDI, 8.0.2.Final
51-
* License: Apache License, 2.0
52-
* Project: https://beanvalidation.org/
53-
* Repackaged in org.glassfish.jersey.server.validation.internal.hibernate
54-
55-
Bootstrap v3.3.7
56-
* License: MIT license (https://github.com/twbs/bootstrap/blob/master/LICENSE)
57-
* Project: http://getbootstrap.com
58-
* Copyright: 2011-2016 Twitter, Inc
59-
60-
Google Guava Version 33.3.0-jre
61-
* License: Apache License, 2.0
62-
* Copyright (C) 2009, 2024 The Guava Authors
63-
64-
jakarta.inject Version: 2.0.1
65-
* License: Apache License, 2.0
66-
* Copyright (C) 2009, 2021 The JSR-330 Expert Group
67-
68-
Javassist Version 3.30.2-GA
69-
* License: Apache License, 2.0
70-
* Project: http://www.javassist.org/
71-
* Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.
72-
73-
Jackson JAX-RS Providers Version 2.19.1
74-
* License: Apache License, 2.0
75-
* Project: https://github.com/FasterXML/jackson-jaxrs-providers
76-
* Copyright: (c) 2009-2024 FasterXML, LLC. All rights reserved unless otherwise indicated.
77-
78-
jQuery v3.7.1
79-
* License: jquery.org/license
80-
* Project: jquery.org
81-
* Copyright: (c) jQuery Foundation
82-
83-
jQuery Barcode plugin 0.3
84-
* License: MIT & GPL (http://www.opensource.org/licenses/mit-license.php & http://www.gnu.org/licenses/gpl.html)
85-
* Project: http://www.pasella.it/projects/jQuery/barcode
86-
* Copyright: (c) 2009 Antonello Pasella antonello.pasella@gmail.com
87-
88-
JSR-166 Extension - JEP 266
89-
* License: CC0
90-
* No copyright
91-
* Written by Doug Lea with assistance from members of JCP JSR-166 Expert Group and released to the public domain, as explained at http://creativecommons.org/publicdomain/zero/1.0/
92-
93-
KineticJS, v4.7.1
94-
* License: MIT license (http://www.opensource.org/licenses/mit-license.php)
95-
* Project: http://www.kineticjs.com, https://github.com/ericdrowell/KineticJS
96-
* Copyright: Eric Rowell
97-
98-
org.objectweb.asm Version 9.9
99-
* License: Modified BSD (https://asm.ow2.io/license.html)
100-
* Copyright (c) 2000-2011 INRIA, France Telecom. All rights reserved.
101-
102-
org.osgi.core version 6.0.0
103-
* License: Apache License, 2.0
104-
* Copyright (c) OSGi Alliance (2005, 2008). All Rights Reserved.
105-
106-
org.glassfish.jersey.server.internal.monitoring.core
107-
* License: Apache License, 2.0
108-
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
109-
* Copyright 2010-2013 Coda Hale and Yammer, Inc.
110-
111-
W3.org documents
112-
* License: W3C License
113-
* Copyright: Copyright (c) 1994-2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/
1+
# Notice for Jersey
2+
This content is produced and maintained by the Eclipse Jersey project.
3+
4+
* Project home: https://projects.eclipse.org/projects/ee4j.jersey
5+
6+
## Trademarks
7+
Eclipse Jersey is a trademark of the Eclipse Foundation.
8+
9+
## Copyright
10+
11+
All content is the property of the respective authors or their employers. For
12+
more information regarding authorship of content, please consult the listed
13+
source code repository logs.
14+
15+
## Declared Project Licenses
16+
17+
This program and the accompanying materials are made available under the terms
18+
of the Eclipse Public License v. 2.0 which is available at
19+
http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made
20+
available under the following Secondary Licenses when the conditions for such
21+
availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU
22+
General Public License, version 2 with the GNU Classpath Exception which is
23+
available at https://www.gnu.org/software/classpath/license.html.
24+
25+
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
26+
27+
## Source Code
28+
The project maintains the following source code repositories:
29+
30+
* https://github.com/eclipse-ee4j/jersey
31+
32+
## Third-party Content
33+
34+
Angular JS, v1.6.6
35+
* License MIT (http://www.opensource.org/licenses/mit-license.php)
36+
* Project: http://angularjs.org
37+
* Coyright: (c) 2010-2017 Google, Inc.
38+
39+
aopalliance Version 1
40+
* License: all the source code provided by AOP Alliance is Public Domain.
41+
* Project: http://aopalliance.sourceforge.net
42+
* Copyright: Material in the public domain is not protected by copyright
43+
44+
Bean Validation API 3.0.2
45+
* License: Apache License, 2.0
46+
* Project: https://projects.eclipse.org/projects/ee4j.bean-validation
47+
* Copyright: 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
48+
* by the @authors tag.
49+
50+
Hibernate Validator CDI, 8.0.2.Final
51+
* License: Apache License, 2.0
52+
* Project: https://beanvalidation.org/
53+
* Repackaged in org.glassfish.jersey.server.validation.internal.hibernate
54+
55+
Bootstrap v3.3.7
56+
* License: MIT license (https://github.com/twbs/bootstrap/blob/master/LICENSE)
57+
* Project: http://getbootstrap.com
58+
* Copyright: 2011-2016 Twitter, Inc
59+
60+
Google Guava Version 33.3.0-jre
61+
* License: Apache License, 2.0
62+
* Copyright (C) 2009, 2024 The Guava Authors
63+
64+
jakarta.inject Version: 2.0.1
65+
* License: Apache License, 2.0
66+
* Copyright (C) 2009, 2021 The JSR-330 Expert Group
67+
68+
Javassist Version 3.30.2-GA
69+
* License: Apache License, 2.0
70+
* Project: http://www.javassist.org/
71+
* Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.
72+
73+
Jackson JAX-RS Providers Version 2.19.4
74+
* License: Apache License, 2.0
75+
* Project: https://github.com/FasterXML/jackson-jaxrs-providers
76+
* Copyright: (c) 2009-2024 FasterXML, LLC. All rights reserved unless otherwise indicated.
77+
78+
jQuery v3.7.1
79+
* License: jquery.org/license
80+
* Project: jquery.org
81+
* Copyright: (c) jQuery Foundation
82+
83+
jQuery Barcode plugin 0.3
84+
* License: MIT & GPL (http://www.opensource.org/licenses/mit-license.php & http://www.gnu.org/licenses/gpl.html)
85+
* Project: http://www.pasella.it/projects/jQuery/barcode
86+
* Copyright: (c) 2009 Antonello Pasella antonello.pasella@gmail.com
87+
88+
JSR-166 Extension - JEP 266
89+
* License: CC0
90+
* No copyright
91+
* Written by Doug Lea with assistance from members of JCP JSR-166 Expert Group and released to the public domain, as explained at http://creativecommons.org/publicdomain/zero/1.0/
92+
93+
KineticJS, v4.7.1
94+
* License: MIT license (http://www.opensource.org/licenses/mit-license.php)
95+
* Project: http://www.kineticjs.com, https://github.com/ericdrowell/KineticJS
96+
* Copyright: Eric Rowell
97+
98+
org.objectweb.asm Version 9.9
99+
* License: Modified BSD (https://asm.ow2.io/license.html)
100+
* Copyright (c) 2000-2011 INRIA, France Telecom. All rights reserved.
101+
102+
org.osgi.core version 6.0.0
103+
* License: Apache License, 2.0
104+
* Copyright (c) OSGi Alliance (2005, 2008). All Rights Reserved.
105+
106+
org.glassfish.jersey.server.internal.monitoring.core
107+
* License: Apache License, 2.0
108+
* Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
109+
* Copyright 2010-2013 Coda Hale and Yammer, Inc.
110+
111+
W3.org documents
112+
* License: W3C License
113+
* Copyright: Copyright (c) 1994-2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/

examples/NOTICE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Javassist Version 3.30.2-GA
7171
* Project: http://www.javassist.org/
7272
* Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.
7373

74-
Jackson JAX-RS Providers Version 2.19.1
74+
Jackson JAX-RS Providers Version 2.19.4
7575
* License: Apache License, 2.0
7676
* Project: https://github.com/FasterXML/jackson-jaxrs-providers
7777
* Copyright: (c) 2009-2023 FasterXML, LLC. All rights reserved unless otherwise indicated.

media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/jackson/jaxrs/base/ProviderBase.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import java.util.HashSet;
1717
import java.util.List;
1818

19+
import com.fasterxml.jackson.core.util.Instantiatable;
1920
import jakarta.ws.rs.core.MediaType;
2021
import jakarta.ws.rs.core.MultivaluedMap;
2122
import jakarta.ws.rs.core.NoContentException;
@@ -619,9 +620,13 @@ public void writeTo(Object value, Class<?> type, Type genericType, Annotation[]
619620
try {
620621
// Want indentation?
621622
if (writer.isEnabled(SerializationFeature.INDENT_OUTPUT)) {
622-
PrettyPrinter defaultPrettyPrinter = writer.getConfig().getDefaultPrettyPrinter();
623-
if (defaultPrettyPrinter != null) {
624-
g.setPrettyPrinter(defaultPrettyPrinter);
623+
PrettyPrinter defaultPP = writer.getConfig().getDefaultPrettyPrinter();
624+
if (defaultPP != null) {
625+
// 11-Jul-2025, tatu: need to create separate instance?
626+
if (defaultPP instanceof Instantiatable<?>) {
627+
defaultPP = (PrettyPrinter) ((Instantiatable<?>) defaultPP).createInstance();
628+
}
629+
g.setPrettyPrinter(defaultPP);
625630
} else {
626631
g.useDefaultPrettyPrinter();
627632
}
Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
# Notice for Jersey Json Jackson module
2-
This content is produced and maintained by the Eclipse Jersey project.
3-
4-
* https://projects.eclipse.org/projects/ee4j.jersey
5-
6-
## Trademarks
7-
Eclipse Jersey is a trademark of the Eclipse Foundation.
8-
9-
## Copyright
10-
11-
All content is the property of the respective authors or their employers. For
12-
more information regarding authorship of content, please consult the listed
13-
source code repository logs.
14-
15-
## Declared Project Licenses
16-
17-
This program and the accompanying materials are made available under the terms
18-
of the Eclipse Public License v. 2.0 which is available at
19-
http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made
20-
available under the following Secondary Licenses when the conditions for such
21-
availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU
22-
General Public License, version 2 with the GNU Classpath Exception which is
23-
available at https://www.gnu.org/software/classpath/license.html.
24-
25-
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
26-
27-
## Source Code
28-
The project maintains the following source code repositories:
29-
30-
* https://github.com/eclipse-ee4j/jersey
31-
32-
## Third-party Content
33-
34-
Jackson JAX-RS Providers version 2.19.1
35-
* License: Apache License, 2.0
36-
* Project: https://github.com/FasterXML/jackson-jaxrs-providers
37-
* Copyright: (c) 2009-2023 FasterXML, LLC. All rights reserved unless otherwise indicated.
1+
# Notice for Jersey Json Jackson module
2+
This content is produced and maintained by the Eclipse Jersey project.
3+
4+
* https://projects.eclipse.org/projects/ee4j.jersey
5+
6+
## Trademarks
7+
Eclipse Jersey is a trademark of the Eclipse Foundation.
8+
9+
## Copyright
10+
11+
All content is the property of the respective authors or their employers. For
12+
more information regarding authorship of content, please consult the listed
13+
source code repository logs.
14+
15+
## Declared Project Licenses
16+
17+
This program and the accompanying materials are made available under the terms
18+
of the Eclipse Public License v. 2.0 which is available at
19+
http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made
20+
available under the following Secondary Licenses when the conditions for such
21+
availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU
22+
General Public License, version 2 with the GNU Classpath Exception which is
23+
available at https://www.gnu.org/software/classpath/license.html.
24+
25+
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
26+
27+
## Source Code
28+
The project maintains the following source code repositories:
29+
30+
* https://github.com/eclipse-ee4j/jersey
31+
32+
## Third-party Content
33+
34+
Jackson JAX-RS Providers version 2.19.4
35+
* License: Apache License, 2.0
36+
* Project: https://github.com/FasterXML/jackson-jaxrs-providers
37+
* Copyright: (c) 2009-2023 FasterXML, LLC. All rights reserved unless otherwise indicated.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2202,7 +2202,7 @@
22022202
<xmlunit.version>2.10.3</xmlunit.version>
22032203
<httpclient.version>4.5.14</httpclient.version>
22042204
<httpclient5.version>5.5</httpclient5.version>
2205-
<jackson.version>2.19.1</jackson.version>
2205+
<jackson.version>2.19.4</jackson.version>
22062206
<javassist.version>3.30.2-GA</javassist.version>
22072207
<jettison.version>1.3.7</jettison.version> <!-- TODO: 1.3.8 doesn't work; AbstractJsonTest complexBeanWithAttributes -->
22082208
<jboss.vfs.version>3.3.2.Final</jboss.vfs.version>

0 commit comments

Comments
 (0)