#43 Superclass reflection issue

closed
None
5
2006-04-12
2006-04-12
No

I've got a bidirectional mapping defined on a
collection property with
custom
get-method & set-method definitions. When I pass in an
instance of a
subclass
for mapping, I'm getting a reflection error when it's
trying to look up
the
getter method from the subclass. Looking in the
FieldMap code
(findMethodWithParam
line 256), the Class.getDeclaredMethod is used on the
subclass
instance, which
fails to find the appropriate getter method in the
superclass. When I
changed
the line to Class.getMethod, it found the getter in the
superclass.
Did I miss
something in the mapping? Or is this a possible bug?

Discussion

  • Franz Garsombke

    Franz Garsombke - 2006-04-12
    • status: open --> pending
     
  • Franz Garsombke

    Franz Garsombke - 2006-04-12
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks