Documentation bug on AttributeSupport.getAttributeValueAsBoolean?
Basics
Logistics
Basics
Logistics
Description
@Rod Widdowson Can you check the javadoc on the method in the subject? It has a comment about “late enough to allow for property replacement” and I think that must be incorrect, right? None of the other methods have that comment and this isn’t really something you can do inside the Spring parsers at all and expect it to work, you have to use a factory bean for booleans, right?
Environment
None
Activity
Rod Widdowson
April 19, 2023 at 10:14 AM
javadoc fixed
Rod Widdowson
April 19, 2023 at 10:14 AM
Yes, this is arrant nonsense (and looks like a cut and paste issue).
I have added some words to the javadoc about not using this in a Spring context unless you have to,
you have to use a factory bean for booleans, right?
Or inject the string into a boolean setter, then property replacement will happen before type massaging. Our native spring files use this all over the shop.
@Rod Widdowson Can you check the javadoc on the method in the subject? It has a comment about “late enough to allow for property replacement” and I think that must be incorrect, right? None of the other methods have that comment and this isn’t really something you can do inside the Spring parsers at all and expect it to work, you have to use a factory bean for booleans, right?