smallrye-config icon indicating copy to clipboard operation
smallrye-config copied to clipboard

getRawValue doesn't look at the raw value

Open shawkins opened this issue 2 years ago • 1 comments

Is this correct - https://github.com/smallrye/smallrye-config/blob/5a96de2849c87d144586df07dd4529e28d7e3b85/implementation/src/main/java/io/smallrye/config/SmallRyeConfig.java#L370

It seems like it should consult the raw value, or have some javadocs redefining what raw means for this method.

shawkins avatar Nov 16 '23 16:11 shawkins

Yes, it is correct. The names are a bit unfortunate. getRawValue is part of the API since the early versions and the intent is to provide the value of the configuration before applying conversions.

Expressions and ConfigValue came later, requiring a way to access the value without expansion, which also got the name getRawValue.

radcortez avatar Nov 16 '23 17:11 radcortez