Bug #173

Issue with isRemoteAnnotated() and CL

Added by achristian about 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:08/22/2013
Priority:NormalDue date:
Assignee:achristian% Done:

100%

Category:CoreEstimated time:4.00 h
Target version:1.2.0Spent time:0.50 h

Description

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


Related issues

Copied to SIMON - Bug #174: Issue with isRemoteAnnotated() and CL Closed 08/22/2013

History

#1 Updated by achristian about 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.

#2 Updated by achristian about 5 years ago

  • Status changed from Feedback to Closed

Reported as solved. --> closed.

Also available in: Atom PDF