EntityCache tries to use a protected method of UtilCache wrongly
---------------------------------------------------------------- Key: OFBIZ-1296 URL: https://issues.apache.org/jira/browse/OFBIZ-1296 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: SVN trunk Reporter: Adam Heath Fix For: SVN trunk Attachments: framework-entity-EntityCache-CacheLine-hasExpired.patch EntityCache fetches all CacheLines, then tries to pass that to hasExpired. However, the method that takes a CacheLine parameter is protected, so the compiler uses the other one, that just takes an Object. While this compiles, it does not function correctly. The attached patch makes it use the hasExpired() on CacheLine, introduced by OFBIZ-1295. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Heath updated OFBIZ-1296: ------------------------------ Attachment: framework-entity-EntityCache-CacheLine-hasExpired.patch > EntityCache tries to use a protected method of UtilCache wrongly > ---------------------------------------------------------------- > > Key: OFBIZ-1296 > URL: https://issues.apache.org/jira/browse/OFBIZ-1296 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Adam Heath > Fix For: SVN trunk > > Attachments: framework-entity-EntityCache-CacheLine-hasExpired.patch > > > EntityCache fetches all CacheLines, then tries to pass that to hasExpired. However, the method that takes a CacheLine parameter is protected, so the compiler uses the other one, that just takes an Object. While this compiles, it does not function correctly. > The attached patch makes it use the hasExpired() on CacheLine, introduced by OFBIZ-1295. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Heath updated OFBIZ-1296: ------------------------------ Assignee: Adam Heath > EntityCache tries to use a protected method of UtilCache wrongly > ---------------------------------------------------------------- > > Key: OFBIZ-1296 > URL: https://issues.apache.org/jira/browse/OFBIZ-1296 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Adam Heath > Assignee: Adam Heath > Fix For: SVN trunk > > Attachments: framework-entity-EntityCache-CacheLine-hasExpired.patch > > > EntityCache fetches all CacheLines, then tries to pass that to hasExpired. However, the method that takes a CacheLine parameter is protected, so the compiler uses the other one, that just takes an Object. While this compiles, it does not function correctly. > The attached patch makes it use the hasExpired() on CacheLine, introduced by OFBIZ-1295. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Heath closed OFBIZ-1296. ----------------------------- Resolution: Fixed Fixed by revision 585650. > EntityCache tries to use a protected method of UtilCache wrongly > ---------------------------------------------------------------- > > Key: OFBIZ-1296 > URL: https://issues.apache.org/jira/browse/OFBIZ-1296 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Adam Heath > Assignee: Adam Heath > Fix For: SVN trunk > > Attachments: framework-entity-EntityCache-CacheLine-hasExpired.patch > > > EntityCache fetches all CacheLines, then tries to pass that to hasExpired. However, the method that takes a CacheLine parameter is protected, so the compiler uses the other one, that just takes an Object. While this compiles, it does not function correctly. > The attached patch makes it use the hasExpired() on CacheLine, introduced by OFBIZ-1295. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |