archaius icon indicating copy to clipboard operation
archaius copied to clipboard

DynamicPropertyUpdater: ClassCastException bug on line 134

Open darekmydlarz opened this issue 8 years ago • 2 comments

Hey, there is a bug in DynamicPropertyUdpater:134: https://github.com/Netflix/archaius/blob/master/archaius-core/src/main/java/com/netflix/config/DynamicPropertyUpdater.java#L134

When newValue is not a String, but for instance Integer it throws ClassCastException

darekmydlarz avatar Sep 29 '16 10:09 darekmydlarz

@dmydlarz do you have a special use case for a non-string valued property? From the code itself, it definitely will throw exception as you said. But Archaius itself has an assumption that the root property value is always string (follow Java properties convention).

howardyuan avatar Dec 20 '16 18:12 howardyuan

I had the same issue. It was caused by "blah: false" property in bootstrap.yml config file.

ViktorStolbovoy avatar May 16 '17 16:05 ViktorStolbovoy

V1 is deprecated and won't be maintained anymore.

rgallardo-netflix avatar Feb 15 '23 19:02 rgallardo-netflix