Fix BaseCodecConfigurer clone bug
Prior to this commit, ExchangeStrategies custom codec's reader and writer were not registered due to a bug in BaseCodecConfigurer. This commit fixes this by correcting the implementation of the DefaultCustomCodecs constructor used within BaseCodecConfigurer. Closes gh-25149
This commit is contained in:
@@ -142,10 +142,10 @@ abstract class BaseCodecConfigurer implements CodecConfigurer {
|
||||
* @since 5.1.12
|
||||
*/
|
||||
DefaultCustomCodecs(DefaultCustomCodecs other) {
|
||||
other.typedReaders.putAll(this.typedReaders);
|
||||
other.typedWriters.putAll(this.typedWriters);
|
||||
other.objectReaders.putAll(this.objectReaders);
|
||||
other.objectWriters.putAll(this.objectWriters);
|
||||
this.typedReaders.putAll(other.typedReaders);
|
||||
this.typedWriters.putAll(other.typedWriters);
|
||||
this.objectReaders.putAll(other.objectReaders);
|
||||
this.objectWriters.putAll(other.objectWriters);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user