[jira] [Created] (OFBIZ-11004) Add missing ‘synchronized’ modifier

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

[jira] [Created] (OFBIZ-11004) Add missing ‘synchronized’ modifier

Nicolas Malin (Jira)
Mathieu Lirzin created OFBIZ-11004:
--------------------------------------

             Summary: Add missing ‘synchronized’ modifier
                 Key: OFBIZ-11004
                 URL: https://issues.apache.org/jira/browse/OFBIZ-11004
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: Trunk
            Reporter: Mathieu Lirzin
            Assignee: Mathieu Lirzin
             Fix For: Upcoming Branch


Overidding a synchronized method with a non-synchronized one can
introduce potential runtime concurrency bugs. Since
‘ExtendedProperties#loadFromXML’ is overridding
‘Propertiers#loadFromXML’ which is synchronized, it is safer to mark
it as synchonized.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)