Skip to content

fix: handle decimal-formatted integers in date parsing#18

Open
rukayaj wants to merge 1 commit intoFilteredPush:masterfrom
rukayaj:parseint
Open

fix: handle decimal-formatted integers in date parsing#18
rukayaj wants to merge 1 commit intoFilteredPush:masterfrom
rukayaj:parseint

Conversation

@rukayaj
Copy link

@rukayaj rukayaj commented Sep 1, 2025

  • Replace Integer.parseInt with NumberUtils.parseInt to handle decimal-formatted integers (e.g., "29.0" → 29) in date components
  • Affects Runner, LocalDateInterval, LocalDateTimeInterval, and DwCOtherDateDQ
  • Maintains TG2 compliance by accepting only unambiguous integer values
  • Fixes NumberFormatException errors when parsing dates with ".0" suffixes

I'm aiming to allow parsing date components that are stored as decimals while still rejecting true non-integer values, aligning with TG2 spec requirements for "interpretable as integer" fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments