cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2276) Bug in LifecycleCallbackRegistry.addListener(Class<?>, LifecycleListener)
Date Wed, 05 Apr 2017 07:42:41 GMT

     [ https://issues.apache.org/jira/browse/CAY-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikita Timofeev updated CAY-2276:
---------------------------------
    Description: 
Bug has been found in {{addListener(Class<?>, LifecycleListener)}} method, PrePersist
listener registered as PostPersist:
{code}
public void addListener(Class<?> entityClass, LifecycleListener listener) {
// ...
    addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "prePersist");
    addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "postPersist");
// ...
}
{code} 

  was:
Bug has been found in {{addListener(Class<?>, LifecycleListener)}} method:
{code}
public void addListener(Class<?> entityClass, LifecycleListener listener) {
// ...
    addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "prePersist");
    addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "postPersist");
// ...
}
{code} 


> Bug in LifecycleCallbackRegistry.addListener(Class<?>, LifecycleListener)
> -------------------------------------------------------------------------
>
>                 Key: CAY-2276
>                 URL: https://issues.apache.org/jira/browse/CAY-2276
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>             Fix For: 4.0.M6
>
>
> Bug has been found in {{addListener(Class<?>, LifecycleListener)}} method, PrePersist
listener registered as PostPersist:
> {code}
> public void addListener(Class<?> entityClass, LifecycleListener listener) {
> // ...
>     addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "prePersist");
>     addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "postPersist");
> // ...
> }
> {code} 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message