Ticket #110 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Changed 2 years ago by stephan

  • status changed from new to closed
  • resolution set to fixed

Implemented in r18239 and r18241.

Test is in 9.2.7-otjld-get-all-roles-4

Note: See TracTickets for help on using tickets.