This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Description
In ExchangeService.bindToItem() (line 1428, currently), the parameter Class is passed. The method uses the generic bindToItem() to retrieve an item, then does a type check and cast down to TItem. However, the type check is:
if (result instanceof Item)
This is incorrect as we already know it's an item. It should be type checking against Class.