JBehave

0.0 gets parsed as a Long

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.3, 2.3.1, 2.3.2
  • Fix Version/s: 2.4
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

When defining a step that takes a List<Double>, inputs such as 1.0, 1.5, etc. work fine. But 0.0 throws a ClassCastException due to jbehave parsing it as a Long. It should be parsed as a double.

Activity

Hide
James Ravn added a comment -

This affects 2.3.2 as well.

Show
James Ravn added a comment - This affects 2.3.2 as well.
Hide
Mauro Talevi added a comment -

Refactored NumberListConverter to use NumberFormat only when argument Type is Number (i.e. not a sub-class) and to use NumberConverter for specific number types.

Show
Mauro Talevi added a comment - Refactored NumberListConverter to use NumberFormat only when argument Type is Number (i.e. not a sub-class) and to use NumberConverter for specific number types.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: