ConfigurationHelper can not convert value from integer to long and vice versa

Description

When calling ConfigurationHelper.getLong with values map containing integer value under key 'name', it will throw ConfigurationException. Similarily, same exception is thrown if either getInt or getInteger is called with long value under key 'name'. Simple test case is attached to demonstrate this behaviour.

Suggested solution to problem above is to use longValue / intValue methods in java.lang.Number class. Suggested patch is attached.

Pull request on Github will be created.

Environment

None

Assignee

Unassigned

Reporter

Čedomir Igaly

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure