Netflix / archaius

Library for configuration management API
Apache License 2.0
2.46k stars 485 forks source link

Value parsers for Long should accept a final "L" #719

Closed rgallardo-netflix closed 3 months ago

rgallardo-netflix commented 5 months ago

Currently, trying to set the value for a long property as "1L" fails on read with

java.lang.NumberFormatException: For input string: "1L"
  at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
  at java.lang.Long.parseLong(Long.java:711)
  at java.lang.Long.valueOf(Long.java:1163)
  at com.netflix.archaius.AbstractRegistryDecoder.decode(AbstractRegistryDecoder.java:49)