Open
Description
Adelino Rodrigues opened DATAREST-379 and commented
When a resource processor implementation implements the ResourceProcessor interface as below, all is well: it is invoked and custom links are added as expected.
public class MyDataResourceProcessor implements ResourceProcessor<Resource<MyData>>
{
// ...
}
On the other hand, when the implementation class inherits from a class, say MyAbstractResourceProcessor which itself implements the ResourceProcessor interface, the resource processor gets invoked but serialisation fails. Actually all other generated spring data rest serializers (or rest exporters) fail.
public class MyDataResourceProcessor extends MyAbstractResourceProcessor<MyData> {
// …
}
public abstract class MyAbstractResourceProcessor<T> implements ResourceProcessor<Resource<T>> {
// …
}
This is not a big problem but as it fails without any traces in the logs, I thought it is worth raising this issue
Affects: 2.1.2 (Dijkstra SR2)