On Tue, Aug 15, 2017 at 4:10 PM, Jama A <[email protected]> wrote:
> 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;......]
> 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?

Unfortunately I don't think I fully understand the use case from this.
Could you share example code from your custom AnnotationIntrospector
method to help understand what information you are looking to get?

-+ Tatu +-

-- 
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