Skip to content

Commit 135db4c

Browse files
committed
Bug 37932581 - [37932373->25.09] Bump Helidon from 4.2.0 to 4.2.2
Bug 37932588 - [37932530->25.09] Bump Jersey from 3.1.9 to 3.1.10 Bug 37944892 - [37932538->25.09] Bump parsson-media from 1.1.6 to 1.1.7 (merge main -> ce/main @ 116202) [git-p4: depot-paths = "//dev/coherence-ce/main/": change = 116208]
1 parent b05d6bf commit 135db4c

File tree

10 files changed

+28
-24
lines changed

10 files changed

+28
-24
lines changed

prj/coherence-dependencies/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
This is not always possible if we need to bump versions for CVE's
191191
-->
192192
<!-- When running tests with Java 21 we will use Helidon 4 -->
193-
<helidon.version.4>4.2.0</helidon.version.4>
193+
<helidon.version.4>4.2.2</helidon.version.4>
194194
<!-- When running tests with Java 17 we will use Helidon 3 (this will be set using the helidon3 profile) -->
195195
<helidon.version.3>3.2.12</helidon.version.3>
196196
<!-- This is the property that sets the version used by other modules (we default to Helidon 4) -->
@@ -230,7 +230,7 @@
230230
<jaxb-impl.version>4.0.3</jaxb-impl.version>
231231
<!-- NOTE: this version should ideally be in sync' with that used by Helidon
232232
This is not always possible if we need to bump versions for CVE's -->
233-
<jersey.version>3.1.9</jersey.version>
233+
<jersey.version>3.1.10</jersey.version>
234234
<jettison.version>1.5.4</jettison.version>
235235
<jhdf.version>0.7.0-alpha</jhdf.version>
236236
<jna.version>5.14.0</jna.version>
@@ -248,7 +248,7 @@
248248
<opentracing.tracerresolver.version>0.1.8</opentracing.tracerresolver.version>
249249
<oracle.db.version>11.2.0.3.0</oracle.db.version>
250250
<!-- make sure this version of parsson-media is in sync with Helidon -->
251-
<parsson-media.version>1.1.6</parsson-media.version>
251+
<parsson-media.version>1.1.7</parsson-media.version>
252252
<protobuf.version>3.25.5</protobuf.version>
253253
<resin.version>3.0</resin.version>
254254
<rxjava.version>3.0.2</rxjava.version>

prj/coherence-rest/src/main/java/com/tangosol/coherence/rest/providers/JsonCollectionWriter.java

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
@@ -33,6 +33,7 @@
3333

3434
import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON;
3535

36+
3637
/**
3738
* Provider responsible for converting Java collections to a JSON formatted
3839
* stream.
@@ -42,7 +43,7 @@
4243
@Provider
4344
@Produces(APPLICATION_JSON)
4445
public class JsonCollectionWriter
45-
implements MessageBodyWriter<Object>
46+
implements MessageBodyWriter<Collection<?>>
4647
{
4748
// ----- constructors ---------------------------------------------------
4849

@@ -56,7 +57,7 @@ public JsonCollectionWriter()
5657
/**
5758
* Construct a JsonCollectionWriter instance.
5859
*
59-
* @param registry marshaller registry to use
60+
* @param registry marshaller registry to use
6061
*/
6162
public JsonCollectionWriter(MarshallerRegistry registry)
6263
{
@@ -67,21 +68,21 @@ public JsonCollectionWriter(MarshallerRegistry registry)
6768

6869
@Override
6970
public boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation,
70-
MediaType mediaType)
71+
MediaType mediaType)
7172
{
7273
return Collection.class.isAssignableFrom(clz);
7374
}
7475

7576
@Override
76-
public long getSize(Object col, Class<?> clz, Type type, Annotation[] aAnnotation,
77-
MediaType mediaType)
77+
public long getSize(Collection<?> col, Class<?> clz, Type type, Annotation[] aAnnotation,
78+
MediaType mediaType)
7879
{
7980
return -1;
8081
}
8182

8283
@Override
83-
public void writeTo(Object oCol, Class<?> clz, Type type, Annotation[] aAnnotation,
84-
MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream stream)
84+
public void writeTo(Collection<?> oCol, Class<?> clz, Type type, Annotation[] aAnnotation,
85+
MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream stream)
8586
throws IOException, WebApplicationException
8687
{
8788
MarshallerRegistry registry = m_marshallerRegistry;
@@ -91,11 +92,11 @@ public void writeTo(Object oCol, Class<?> clz, Type type, Annotation[] aAnnotati
9192
}
9293

9394
EntryWriter entryWriter = new EntryWriter(registry);
94-
PrintStream out = new PrintStream(stream);
95+
PrintStream out = new PrintStream(stream);
9596
out.print("[");
9697

9798
boolean first = true;
98-
for (Object o : (Collection) oCol)
99+
for (Object o : oCol)
99100
{
100101
if (o != null)
101102
{

prj/coherence-rest/src/main/java/com/tangosol/coherence/rest/providers/XmlCollectionWriter.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
@@ -42,7 +42,7 @@
4242
@Provider
4343
@Produces(APPLICATION_XML)
4444
public class XmlCollectionWriter
45-
implements MessageBodyWriter<Object>
45+
implements MessageBodyWriter<Collection<?>>
4646
{
4747
// ----- constructors ---------------------------------------------------
4848

@@ -73,14 +73,14 @@ public boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation,
7373
}
7474

7575
@Override
76-
public long getSize(Object col, Class<?> clz, Type type, Annotation[] aAnnotation,
76+
public long getSize(Collection<?> col, Class<?> clz, Type type, Annotation[] aAnnotation,
7777
MediaType mediaType)
7878
{
7979
return -1;
8080
}
8181

8282
@Override
83-
public void writeTo(Object oCol, Class<?> clz, Type type, Annotation[] aAnnotation,
83+
public void writeTo(Collection<?> oCol, Class<?> clz, Type type, Annotation[] aAnnotation,
8484
MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream stream)
8585
throws IOException, WebApplicationException
8686
{
@@ -96,7 +96,7 @@ public void writeTo(Object oCol, Class<?> clz, Type type, Annotation[] aAnnotati
9696
out.print("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
9797
out.print("<collection>");
9898

99-
for (Object o : (Collection) oCol)
99+
for (Object o : oCol)
100100
{
101101
if (o instanceof Map.Entry)
102102
{

prj/coherence-testing-support/src/main/java/com/oracle/coherence/testing/AbstractTestInfrastructure.java

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.oracle.bedrock.deferred.TemporarilyUnavailableException;
1616
import com.oracle.bedrock.runtime.concurrent.RemoteCallable;
1717
import com.oracle.bedrock.runtime.java.options.JavaHome;
18+
import com.oracle.bedrock.runtime.java.profiles.RemoteDebugging;
1819
import com.oracle.bedrock.testsupport.deferred.Eventually;
1920
import com.oracle.bedrock.runtime.Application;
2021
import com.oracle.bedrock.runtime.ApplicationConsole;
@@ -730,6 +731,8 @@ else if (!props.containsKey("coherence.distributed.localstorage"))
730731
optionsByType.add(SystemProperty.of(sName, props.getProperty(sName)));
731732
}
732733

734+
//optionsByType.add(RemoteDebugging.autoDetect().startSuspended(true));
735+
733736
try
734737
{
735738
member = startCacheServer(sServer, optionsByType, sProject, fGraceful);

prj/examples/guides/600-response-caching/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ coherenceGroupId=com.oracle.coherence.ce
1010

1111
junitVersion=5.8.2
1212
jandexPluginVersion=1.86
13-
helidonVersion=4.2.0
13+
helidonVersion=4.2.2

prj/examples/guides/600-response-caching/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>io.helidon.applications</groupId>
1616
<artifactId>helidon-mp</artifactId>
17-
<version>4.2.0</version>
17+
<version>4.2.2</version>
1818
<relativePath/>
1919
</parent>
2020

prj/examples/tutorials/500-graphql/complete/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
coherenceVersion=25.09-SNAPSHOT
99
coherenceGroupId=com.oracle.coherence.ce
1010

11-
helidonVersion=4.2.0
11+
helidonVersion=4.2.2
1212

1313
junitVersion=5.9.0

prj/examples/tutorials/500-graphql/complete/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<coherence.group.id>com.oracle.coherence.ce</coherence.group.id>
2323
<coherence.version>${project.version}</coherence.version>
24-
<helidon.version>4.2.0</helidon.version>
24+
<helidon.version>4.2.2</helidon.version>
2525
<!-- make sure this version of parsson-media is in sync with Helidon -->
2626
<parsson-media.version>1.1.6</parsson-media.version>
2727

prj/examples/tutorials/500-graphql/initial/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
coherenceVersion=25.09-SNAPSHOT
99
coherenceGroupId=com.oracle.coherence.ce
1010

11-
helidonVersion=4.2.0
11+
helidonVersion=4.2.2
1212

1313
junitVersion=5.8.2

prj/examples/tutorials/500-graphql/initial/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<coherence.group.id>com.oracle.coherence.ce</coherence.group.id>
2323
<coherence.version>${project.version}</coherence.version>
24-
<helidon.version>4.2.0</helidon.version>
24+
<helidon.version>4.2.2</helidon.version>
2525
<!-- make sure this version of parsson-media is in sync with Helidon -->
2626
<parsson-media.version>1.1.6</parsson-media.version>
2727

0 commit comments

Comments
 (0)