I used 
`com.fasterxml.jackson.databind.introspect.AnnotatedMember#getContextClass` 
in my project to get actual sub-class name that field has a value. But it 
was removed in this commit [Starting work on ensuring proper resolution of 
member types;...... 
<https://github.com/FasterXML/jackson-databind/commit/0e4249a2b6cd4ce71a2980b50dcd9765ad03324c#diff-4f2f19b7140280e7d47b48e1d0df1139L75>
]
But now I can't find a context class, consider this example.

abstract class BaseFoo {
     private String id;
     private Long version;


    /// getters/setters


}

class Bar extends BaseFoo{
    //some other fields

}


In my custom AnnotationIntrospector I need to find the actual sub-class 
(Bar) from the AnnotatedMember object. I see there's only 
AnnotatedMember#getDeclaringClass() which returns the class that physically 
declared (BaseFoo)

But I can't make use of it - how can I find actual sub-class that annotated 
member field is associated?

Thanks!

 

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to