[JIRA] (JSSH-22) Consider returning null from Spring boolean converters

Rod Widdowson (Jira) jira at shibboleth.atlassian.net
Wed Feb 1 15:02:18 UTC 2023


Rod Widdowson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=59fb32bbc24efb3c4ed3c977 ) *commented* on JSSH-22 ( https://shibboleth.atlassian.net/browse/JSSH-22?atlOrigin=eyJpIjoiOTEyYTE4YzljOGZjNDY5OTg4ZDljNDlhNjk1MDU4MDYiLCJwIjoiaiJ9 )

Re: Consider returning null from Spring boolean converters ( https://shibboleth.atlassian.net/browse/JSSH-22?atlOrigin=eyJpIjoiOTEyYTE4YzljOGZjNDY5OTg4ZDljNDlhNjk1MDU4MDYiLCJwIjoiaiJ9 )

{{org.springframework.beans.BeanWrapperImpl.convertForProperty(@Nullable Object value, String propertyName) }}takes a property name and looks up the one true type.

This appears to be because there is a profound belief inside the org.framework.beans.CachedIntrospectionResults object that each property has only one setter (specifically it ends up as a map of string to type where the string appears to b derived from the bean setter and getter names. so if you have polymorphism in your setters you are short of luck.

I guess I get to close this as “won’t do?” sigh sigh sigh

( https://shibboleth.atlassian.net/browse/JSSH-22#add-comment?atlOrigin=eyJpIjoiOTEyYTE4YzljOGZjNDY5OTg4ZDljNDlhNjk1MDU4MDYiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JSSH-22#add-comment?atlOrigin=eyJpIjoiOTEyYTE4YzljOGZjNDY5OTg4ZDljNDlhNjk1MDU4MDYiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:06410ea )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20230201/38f67c58/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-d8d47fc6-0608-4776-b3d2-adc44506f039
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230201/38f67c58/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-1fb54c13-2fc0-4808-a892-07b8280e384e
Type: image/png
Size: 448 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230201/38f67c58/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-981bc8c2-6389-46ef-ad7d-6eec30447a54
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230201/38f67c58/attachment-0005.png>


More information about the commits mailing list