[jira] Created: (OFBIZ-1296) EntityCache tries to use a protected method of UtilCache wrongly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1296) EntityCache tries to use a protected method of UtilCache wrongly

Nicolas Malin (Jira)
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.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1296) EntityCache tries to use a protected method of UtilCache wrongly

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:
------------------------------

    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.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1296) EntityCache tries to use a protected method of UtilCache wrongly

Nicolas Malin (Jira)
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.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1296) EntityCache tries to use a protected method of UtilCache wrongly

Nicolas Malin (Jira)
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.