You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Use method reference operator (::) throws ClassCastException
To Reproduce
This code works fine:
MyQuery query = MyQuery.builder().build();
MyQuery.Result result = query.request(ENDPOINT).post();
List resultList = result.getGeneratedObjects().stream()
.map(obj->MyDomainObjectMapper.map(obj))
.collect(Collectors.toList());
However code below fails and throws java.lang.ClassCastException: manifold.api.json.DataBindings cannot be cast to queries$MyQuery$Result$generatedObject
MyQuery query = MyQuery.builder().build();
MyQuery.Result result = query.request(ENDPOINT).post();
List resultList = result.getGeneratedObjects().stream()
.map(MyDomainObjectMapper::map)
.collect(Collectors.toList());
The text was updated successfully, but these errors were encountered:
Describe the bug
Use method reference operator (::) throws ClassCastException
To Reproduce
This code works fine:
MyQuery query = MyQuery.builder().build();
MyQuery.Result result = query.request(ENDPOINT).post();
List resultList = result.getGeneratedObjects().stream()
.map(obj->MyDomainObjectMapper.map(obj))
.collect(Collectors.toList());
However code below fails and throws java.lang.ClassCastException: manifold.api.json.DataBindings cannot be cast to queries$MyQuery$Result$generatedObject
MyQuery query = MyQuery.builder().build();
MyQuery.Result result = query.request(ENDPOINT).post();
List resultList = result.getGeneratedObjects().stream()
.map(MyDomainObjectMapper::map)
.collect(Collectors.toList());
The text was updated successfully, but these errors were encountered: