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

Improper type check in ExchangeService.bindToItem() #11

@Noblebrown

Description

@Noblebrown

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions