Issue with isRemoteAnnotated() and CL
|Category:||Core||Estimated time:||4.00 h|
|Target version:||1.2.0||Spent time:||0.50 h|
When using SIMON with a Netbeans RCP Application and different modules, it might be the case, that a annotated remote object is not detected as a annotated remote object.
Root cause is a class loading issue: The call isAnnotationPresent() uses the current CL to load the SimonRemote annotation. But in the above described scenario, it might be the case, that the class' internal annotation map does not contain the same class instance, but another, identical instance, loaded by remote object's CL.
See discussion here: http://dev.root1.de/boards/7/topics/859
#1 Updated by achristian over 5 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Changed implementation in Utils class:
First the current CL is used to load SimonRemote Annotation class to check is remote object has this annotation present. If this fails, the remote object's CL is used to do the same query.
Unit tests say "green".
Feedback from timekeeper required.