Skip to content

Commit 1fd2e1a

Browse files
committed
fix jdk11 issue
1 parent 27678d6 commit 1fd2e1a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/util/JsonDeserializationProblemHandler.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ public Object handleUnexpectedToken(
123123
"Ignoring value " + t.asString() + " at " + jsonPointer + " as configured.");
124124
throw new RetryException(jsonPointer, t.asString());
125125
} else {
126-
jsonPointer = jsonPointer.appendProperty(t.asString());
126+
jsonPointer = JsonPointer.compile(jsonPointer.toString() + "/" + t.asString());
127+
// Cleanup when Java11 is no longer supported.
128+
// jsonPointer = jsonPointer .appendProperty(t.asString()); better, but not supported in
129+
// old versions.
127130
shouldDelete = propertyShouldBeDroped(className, jsonPointer, t.asString());
128131
if (shouldDelete) {
129132
LOGGER.info(
@@ -161,7 +164,10 @@ public Object handleMissingInstantiator(
161164
LOGGER.info("Ignoring value " + p.getText() + " at " + jsonPointer + " as configured.");
162165
throw new RetryException(jsonPointer, p.getText());
163166
} else {
164-
jsonPointer = jsonPointer.appendProperty(p.getText());
167+
jsonPointer = JsonPointer.compile(jsonPointer.toString() + "/" + p.getText());
168+
// Cleanup when Java11 is no longer supported.
169+
// jsonPointer = jsonPointer .appendProperty(p.getText()); better, but not supported in
170+
// old versions.
165171
shouldDelete = propertyShouldBeDroped(className, jsonPointer, p.currentName());
166172
if (shouldDelete) {
167173
LOGGER.info(

0 commit comments

Comments
 (0)