[dna-issues] [JBoss JIRA] Resolved: (DNA-568) Observable.register(Observer) Contract Is Being Violated

Dan Florian (JIRA) jira-events at lists.jboss.org
Fri Dec 4 07:51:30 EST 2009


     [ https://jira.jboss.org/jira/browse/DNA-568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Florian resolved DNA-568.
-----------------------------

    Resolution: Done


Changed the following classes so that they return false when a null observable is passed in to the register method:

org.jboss.dna.repository.RepositoryLibrary
org.jboss.dna.graph.observe.MockObservable
org.jboss.dna.graph.observe.ObservationBus
org.jboss.dna.jcr.JcrRepository#RepositoryObservationManager 

> Observable.register(Observer) Contract Is Being Violated
> --------------------------------------------------------
>
>                 Key: DNA-568
>                 URL: https://jira.jboss.org/jira/browse/DNA-568
>             Project: DNA
>          Issue Type: Bug
>          Components: Graph, JCR
>    Affects Versions: 0.6
>            Reporter: Dan Florian
>            Assignee: Dan Florian
>             Fix For: 0.7
>
>
> The Observable.register(Observable) method allows a null observable. When it is null the method should return false. These classes are violating that contract:
> org.jboss.dna.repository.RepositoryLibrary
> org.jboss.dna.graph.observe.ObservationBus
> org.jboss.dna.jcr.JcrRepository#RepositoryObservationManager

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the dna-issues mailing list