Ticket #110 (closed enhancement: fixed)
getAllRoles should support filtering per role type
| Reported by: | stephan | Owned by: | stephan |
|---|---|---|---|
| Priority: | major | Milestone: | OTDT_1.1.10 |
| Component: | language | Version: | 1.1.9 |
| Keywords: | Cc: |
Description
According to the documentation, the method Team.getAllRoles(Class) requires the given class to be a top-most bound role (API doc and OTJLD §6.1.a).
The implementation as of 1.1.9 handles all bound role types but simply returns all roles of the appropriate cache, which may include instances of a super-type of the given class, which is surprising.
Instead, the method should filter the array of roles to include only those that are actually compatible with the given class.
Change History
Note: See
TracTickets for help on using
tickets.
all news
RSS feed