You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have SuperClass and an extending SubClass. SuperClass has a public getter function, which I manually register using registerAssociationAttribute. If I stream SubClass.class and try to use that getter function, I'll get AnalyzerException: Unknown method foo encountered. Even if I register the method again on SubClass (which doesn't fail because the method is inherited), I still get the same error.
The text was updated successfully, but these errors were encountered:
There's actually two versions of registerAssociationAttribute(). You have to use the 4 argument version where you specifically pass in the subclass on which the method will be called. It's just a quirk of Java's reflection stuff.
I investigated the problem @SalehAly reported here a bit.
SSCCE code
I have
SuperClass
and an extendingSubClass
.SuperClass
has a public getter function, which I manually register usingregisterAssociationAttribute
. If I streamSubClass.class
and try to use that getter function, I'll getAnalyzerException: Unknown method foo encountered
. Even if I register the method again onSubClass
(which doesn't fail because the method is inherited), I still get the same error.The text was updated successfully, but these errors were encountered: