[hibernate-issues] [JIRA] (HHH-13891) ProxyFactory should not be built if any ID or property getter/setter methods are final

Gail Badner (JIRA) jira at hibernate.atlassian.net
Thu Mar 5 23:32:59 EST 2020


Gail Badner ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Aabbef6b0-cce3-4556-9748-b721becb9c9a ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMjU0MWI3M2NkOTdiNDMxOGI0YTcwOTNiNGMxMDkzYmUiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-13891?atlOrigin=eyJpIjoiMjU0MWI3M2NkOTdiNDMxOGI0YTcwOTNiNGMxMDkzYmUiLCJwIjoiaiJ9 ) HHH-13891 ( https://hibernate.atlassian.net/browse/HHH-13891?atlOrigin=eyJpIjoiMjU0MWI3M2NkOTdiNDMxOGI0YTcwOTNiNGMxMDkzYmUiLCJwIjoiaiJ9 ) ProxyFactory should not be built if any ID or property getter/setter methods are final ( https://hibernate.atlassian.net/browse/HHH-13891?atlOrigin=eyJpIjoiMjU0MWI3M2NkOTdiNDMxOGI0YTcwOTNiNGMxMDkzYmUiLCJwIjoiaiJ9 )

Issue Type: Bug Assignee: Unassigned Created: 05/Mar/2020 20:32 PM Fix Versions: 5.4.13 Priority: Major Reporter: Gail Badner ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Aabbef6b0-cce3-4556-9748-b721becb9c9a )

If any ID or property getter/setter method is final, an error is logged, but the ProxyFactory is still built.

A proxy of such a class can still be returned by Hibernate. Calling a final getter or setter does not cause the proxy to get initialized.

Any values that are set by calling a final setter on a proxy are ignored as long as the proxy is not initialized.

( https://hibernate.atlassian.net/browse/HHH-13891#add-comment?atlOrigin=eyJpIjoiMjU0MWI3M2NkOTdiNDMxOGI0YTcwOTNiNGMxMDkzYmUiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13891#add-comment?atlOrigin=eyJpIjoiMjU0MWI3M2NkOTdiNDMxOGI0YTcwOTNiNGMxMDkzYmUiLCJwIjoiaiJ9 )

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#100121- sha1:6148daa )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200306/d1f48f10/attachment.html 


More information about the hibernate-issues mailing list