Dennis Du Krøger created METAMODEL-134:
------------------------------------------

             Summary: LazyRef can trigger race condition on errors
                 Key: METAMODEL-134
                 URL: https://issues.apache.org/jira/browse/METAMODEL-134
             Project: Apache MetaModel
          Issue Type: Bug
    Affects Versions: 4.3.2
         Environment: N/A
            Reporter: Dennis Du Krøger


In the LazyRef implementation, when an exception is thrown in fetch(), that 
error is thrown to the thread that triggers the error, but any other threads 
that may be calling get at the same time (or after) will succeed, but with a 
null result.

Workaround: Check if get() returned null, then throw the output of getError();



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to