Details
Description
After a local cargo startup and navigation to a page, the container logs multiple WARN messages:
[INFO] [talledLocalContainer] 2021-11-03 15:42:16,170 WARN [DynamicBeanDefinitionService.addCustomPropertyType:250] Failed to create getter for property: <...> of type: DynamicDropdown
[INFO] [talledLocalContainer] 2021-11-03 15:42:26,782 WARN [DynamicBeanDefinitionService.addCustomPropertyType:250] Failed to create getter for property: <...> of type: StaticDropdown
[INFO] [talledLocalContainer] 2021-11-03 15:42:27,313 WARN [DynamicBeanDefinitionService.addCustomPropertyType:250] Failed to create getter for property: .<...> of type: DynamicDropdown
[INFO] [talledLocalContainer] 2021-11-03 15:42:27,325 WARN [DynamicBeanDefinitionService.addCustomPropertyType:250] Failed to create getter for property: .<...> of type: StaticDropdown
When debugging into the mentioned class, all of these "propertyName"s have the type "String" and thus get added to the builder in line 245.
But since line 247 uses an "if" instead of an "else if", the code then logs the warning as the property is not of the type "Boolean".
Fix:
Need to add "else if" instead of "if" in org.hippoecm.hst.content.beans.dynamic.DynamicBeanDefinitionService#addCustomPropertyType