It seems this function should return TypeInformation for a Map descendant. But if for some reason (I faced this in spring-data-mongodb) the method gets a non Map type it will return super.getMapValueType() which in turn again executes doGetMapValueType and finally we get a StackOverflowError.
Shouldn't the first if (at line 61) be spanned across whole the method to verify that we are working with Map at all?
Issue Links:
DATAMONGO-1479 MappingMongoConverter.convertToMongoType causes StackOverflowError for parameterized map value types
Blazej Adamczyk opened DATACMNS-899 and commented
I'm not sure but it seems there's a bug in ParameterizedTypeInformation.java at line 88: link github:ParameterizedTypeInformation.java.
It seems this function should return
TypeInformation
for a Map descendant. But if for some reason (I faced this in spring-data-mongodb) the method gets a non Map type it will returnsuper.getMapValueType()
which in turn again executesdoGetMapValueType
and finally we get aStackOverflowError
.Shouldn't the first if (at line 61) be spanned across whole the method to verify that we are working with Map at all?
Issue Links:
Referenced from: pull request #176, and commits e93db1d, 2b14d1e, 2664608, 8096d95, 09a2369
Backported to: 1.12.3 (Hopper SR3), 1.11.5 (Gosling SR5)
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: