Ignore super class methods / Classloader issue #1070
Use case: POJO that extends a 3rd party base class. The base class contains a method whose return type is not available to the ClassLoader.
This seems related to: https://github.com/FasterXML/jackson-databind/pull/785/files and #861
It doesn't look like it is possible to ignore methods/super class methods, only fields using the
Example using Realm (https://github.com/realm/realm-java):
The problematic method is
The stack trace from Jackson looks something like this:
Right now the only fix seems to be to create a dummy
The text was updated successfully, but these errors were encountered:
The problem here is that the exception is thrown from very low level code, before actual annotation introspection occurs. So nothing in configuration would help, yet, as Jackson core is simply trying to make sense of methods and fields a Class has.
I wish I had good suggestions for how to tackle the issue. I guess fundamentally it might be possible to add some sort of extension to allow any processing of contents of specific types, similar to existing "ignorable types" (which is used to ignore properties of those types), but applied differently. Sort of like "ignorable parent types".
Other short-term work arounds would involve overriding methods in
One other alternative would be to add generic
@rogerioit Feel free to go ahead and figure out potential solution if you have itch here.
No one has proposed valid solution here yet, or, the usual starting point, unit test to reproduce the issue. Without one fixes are difficult to verify.