You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "David Blevins (JIRA)" <ji...@apache.org> on 2009/10/07 05:12:31 UTC

[jira] Created: (OWB-140) Remove javax.enterprise.event.Observer

Remove javax.enterprise.event.Observer
--------------------------------------

                 Key: OWB-140
                 URL: https://issues.apache.org/jira/browse/OWB-140
             Project: OpenWebBeans
          Issue Type: Sub-task
          Components: Core, Events
            Reporter: David Blevins
            Assignee: Gurkan Erdogdu




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (OWB-140) Remove javax.enterprise.event.Observer

Posted by Gurkan Erdogdu <cg...@gmail.com>.
Thanks  a lot Mark.

I will also look aforementioned @deprecated methods in our api.

--Gurkan

2009/10/12 Mark Struberg <st...@yahoo.de>

> Hi Gurkan!
>
> Thanks for catching this!
>
> As I said in the Jira, this is not yet finished. But I tried to implement
> this since weeks because the spec changed a lot in PFD2. And every time I
> tried to commit, I had to merge and redo my work again ;)
>
> For the TCK: the latest TCK only contains ObserverMethod and no Observer
> anymore, so the old code didn't even run with the latest TCK without
> throwing ClassNotFoundExceptions - so I think at least I didn't make things
> worse ;)
>
> We really must be copmliant with the latest spec and finally throw all
> unused (changed) definitions out of the API. I marked a few methods with
> @Deprecated, but these also must be gone finally.
>
> @all: whenever you see something in the webbeans-api which is not in the
> spec anymore, please also mark those things as deprecated!
>
> Hope to continue hacking today in the night (but will be online late, today
> is Jiu training again)
>
> LieGrue,
> strub
>
>
> --- On Mon, 10/12/09, Gurkan Erdogdu <cg...@gmail.com> wrote:
>
> > From: Gurkan Erdogdu <cg...@gmail.com>
> > Subject: Re: [jira] Commented: (OWB-140) Remove
> javax.enterprise.event.Observer
> > To: openwebbeans-dev@incubator.apache.org
> > Date: Monday, October 12, 2009, 8:28 AM
> > Hey Mark;
> >
> > In the BeanObserverImpl#notify method, you removed
> > conditional exception
> > throwing. But spec. specifies that in "10.5 Observer
> > notification" that "you
> > must catch and log all transactional exceptions and throw
> > other exceptions
> > as Runtime exception."
> >
> > You can see SVN difference here:
> >
> >
> http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/BeanObserverImpl.java?p2=%2Fincubator%2Fopenwebbeans%2Ftrunk%2Fwebbeans-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fwebbeans%2Fevent%2FBeanObserverImpl.java&p1=%2Fincubator%2Fopenwebbeans%2Ftrunk%2Fwebbeans-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fwebbeans%2Fevent%2FBeanObserverImpl.java&r1=824190&r2=824189&view=diff&pathrev=824190
> >
> > Besides this, what are the TODOs that you have mentioned?
> >
> > Could you run TCK event tests over our event
> > implementation?
> >
> > Thanks;
> >
> > -Gurkan
> >
> >
> > 2009/10/12 Mark Struberg (JIRA) <ji...@apache.org>
> >
> > >
> > >    [
> > >
> https://issues.apache.org/jira/browse/OWB-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764517#action_12764517
> ]
> > >
> > > Mark Struberg commented on OWB-140:
> > > -----------------------------------
> > >
> > > only partly fixed!
> > >
> > > I removed the Observer and a few other classes which
> > are not in the JSR-299
> > > spec anymore, but there are still a few TODOs.
> > >
> > > All tests succeed though - so I think we simply miss a
> > few tests ;)
> > >
> > > > Remove javax.enterprise.event.Observer
> > > > --------------------------------------
> > > >
> > > >
> >    Key: OWB-140
> > > >
> >    URL: https://issues.apache.org/jira/browse/OWB-140
> > > >
> >    Project: OpenWebBeans
> > > >          Issue Type:
> > Sub-task
> > > >          Components:
> > Core, Events
> > > >    Affects Versions: M3
> > > >
> > Reporter: David Blevins
> > > >
> > Assignee: Gurkan Erdogdu
> > > >
> >    Fix For: M4
> > > >
> > > >
> > >
> > >
> > > --
> > > This message is automatically generated by JIRA.
> > > -
> > > You can reply to this email to add a comment to the
> > issue online.
> > >
> > >
> >
> >
> > --
> > Gurkan Erdogdu
> > http://gurkanerdogdu.blogspot.com
> >
>
>
>
>


-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

Re: [jira] Commented: (OWB-140) Remove javax.enterprise.event.Observer

Posted by Mark Struberg <st...@yahoo.de>.
Hi Gurkan!

Thanks for catching this!

As I said in the Jira, this is not yet finished. But I tried to implement this since weeks because the spec changed a lot in PFD2. And every time I tried to commit, I had to merge and redo my work again ;)

For the TCK: the latest TCK only contains ObserverMethod and no Observer anymore, so the old code didn't even run with the latest TCK without throwing ClassNotFoundExceptions - so I think at least I didn't make things worse ;)

We really must be copmliant with the latest spec and finally throw all unused (changed) definitions out of the API. I marked a few methods with @Deprecated, but these also must be gone finally.

@all: whenever you see something in the webbeans-api which is not in the spec anymore, please also mark those things as deprecated!

Hope to continue hacking today in the night (but will be online late, today is Jiu training again)

LieGrue,
strub


--- On Mon, 10/12/09, Gurkan Erdogdu <cg...@gmail.com> wrote:

> From: Gurkan Erdogdu <cg...@gmail.com>
> Subject: Re: [jira] Commented: (OWB-140) Remove javax.enterprise.event.Observer
> To: openwebbeans-dev@incubator.apache.org
> Date: Monday, October 12, 2009, 8:28 AM
> Hey Mark;
> 
> In the BeanObserverImpl#notify method, you removed
> conditional exception
> throwing. But spec. specifies that in "10.5 Observer
> notification" that "you
> must catch and log all transactional exceptions and throw
> other exceptions
> as Runtime exception."
> 
> You can see SVN difference here:
> 
> http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/BeanObserverImpl.java?p2=%2Fincubator%2Fopenwebbeans%2Ftrunk%2Fwebbeans-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fwebbeans%2Fevent%2FBeanObserverImpl.java&p1=%2Fincubator%2Fopenwebbeans%2Ftrunk%2Fwebbeans-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fwebbeans%2Fevent%2FBeanObserverImpl.java&r1=824190&r2=824189&view=diff&pathrev=824190
> 
> Besides this, what are the TODOs that you have mentioned?
> 
> Could you run TCK event tests over our event
> implementation?
> 
> Thanks;
> 
> -Gurkan
> 
> 
> 2009/10/12 Mark Struberg (JIRA) <ji...@apache.org>
> 
> >
> >    [
> > https://issues.apache.org/jira/browse/OWB-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764517#action_12764517]
> >
> > Mark Struberg commented on OWB-140:
> > -----------------------------------
> >
> > only partly fixed!
> >
> > I removed the Observer and a few other classes which
> are not in the JSR-299
> > spec anymore, but there are still a few TODOs.
> >
> > All tests succeed though - so I think we simply miss a
> few tests ;)
> >
> > > Remove javax.enterprise.event.Observer
> > > --------------------------------------
> > >
> > >             
>    Key: OWB-140
> > >             
>    URL: https://issues.apache.org/jira/browse/OWB-140
> > >         
>    Project: OpenWebBeans
> > >          Issue Type:
> Sub-task
> > >          Components:
> Core, Events
> > >    Affects Versions: M3
> > >           
> Reporter: David Blevins
> > >           
> Assignee: Gurkan Erdogdu
> > >         
>    Fix For: M4
> > >
> > >
> >
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the
> issue online.
> >
> >
> 
> 
> -- 
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
> 


      

Re: [jira] Commented: (OWB-140) Remove javax.enterprise.event.Observer

Posted by Gurkan Erdogdu <cg...@gmail.com>.
Hey Mark;

In the BeanObserverImpl#notify method, you removed conditional exception
throwing. But spec. specifies that in "10.5 Observer notification" that "you
must catch and log all transactional exceptions and throw other exceptions
as Runtime exception."

You can see SVN difference here:

http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/BeanObserverImpl.java?p2=%2Fincubator%2Fopenwebbeans%2Ftrunk%2Fwebbeans-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fwebbeans%2Fevent%2FBeanObserverImpl.java&p1=%2Fincubator%2Fopenwebbeans%2Ftrunk%2Fwebbeans-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fwebbeans%2Fevent%2FBeanObserverImpl.java&r1=824190&r2=824189&view=diff&pathrev=824190

Besides this, what are the TODOs that you have mentioned?

Could you run TCK event tests over our event implementation?

Thanks;

-Gurkan


2009/10/12 Mark Struberg (JIRA) <ji...@apache.org>

>
>    [
> https://issues.apache.org/jira/browse/OWB-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764517#action_12764517]
>
> Mark Struberg commented on OWB-140:
> -----------------------------------
>
> only partly fixed!
>
> I removed the Observer and a few other classes which are not in the JSR-299
> spec anymore, but there are still a few TODOs.
>
> All tests succeed though - so I think we simply miss a few tests ;)
>
> > Remove javax.enterprise.event.Observer
> > --------------------------------------
> >
> >                 Key: OWB-140
> >                 URL: https://issues.apache.org/jira/browse/OWB-140
> >             Project: OpenWebBeans
> >          Issue Type: Sub-task
> >          Components: Core, Events
> >    Affects Versions: M3
> >            Reporter: David Blevins
> >            Assignee: Gurkan Erdogdu
> >             Fix For: M4
> >
> >
>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>


-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

[jira] Commented: (OWB-140) Remove javax.enterprise.event.Observer

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762851#action_12762851 ] 

David Blevins commented on OWB-140:
-----------------------------------

The javax.enterprise.event.Observer interface was removed.  It simply isn't needed as the @Observes annotation can capture that just fine.  

Internally we should just be wrapping these annotated methods as javax.enterprise.inject.spi.ObserverMethod instances and the NotificationManager should be reworked to hold a collection of them instead of the ObserverWrapper inner class.  That would actually simplify the NotificationManager code even more.


> Remove javax.enterprise.event.Observer
> --------------------------------------
>
>                 Key: OWB-140
>                 URL: https://issues.apache.org/jira/browse/OWB-140
>             Project: OpenWebBeans
>          Issue Type: Sub-task
>          Components: Core, Events
>            Reporter: David Blevins
>            Assignee: Gurkan Erdogdu
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OWB-140) Remove javax.enterprise.event.Observer

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gurkan Erdogdu updated OWB-140:
-------------------------------

    Affects Version/s: M3
        Fix Version/s: M4

> Remove javax.enterprise.event.Observer
> --------------------------------------
>
>                 Key: OWB-140
>                 URL: https://issues.apache.org/jira/browse/OWB-140
>             Project: OpenWebBeans
>          Issue Type: Sub-task
>          Components: Core, Events
>    Affects Versions: M3
>            Reporter: David Blevins
>            Assignee: Gurkan Erdogdu
>             Fix For: M4
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OWB-140) Remove javax.enterprise.event.Observer

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg reassigned OWB-140:
---------------------------------

    Assignee: Mark Struberg  (was: Gurkan Erdogdu)

> Remove javax.enterprise.event.Observer
> --------------------------------------
>
>                 Key: OWB-140
>                 URL: https://issues.apache.org/jira/browse/OWB-140
>             Project: OpenWebBeans
>          Issue Type: Sub-task
>          Components: Core, Events
>    Affects Versions: M3
>            Reporter: David Blevins
>            Assignee: Mark Struberg
>             Fix For: M4
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OWB-140) Remove javax.enterprise.event.Observer

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OWB-140.
-------------------------------

    Resolution: Fixed

> Remove javax.enterprise.event.Observer
> --------------------------------------
>
>                 Key: OWB-140
>                 URL: https://issues.apache.org/jira/browse/OWB-140
>             Project: OpenWebBeans
>          Issue Type: Sub-task
>          Components: Core, Events
>    Affects Versions: M3
>            Reporter: David Blevins
>            Assignee: Mark Struberg
>             Fix For: M4
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OWB-140) Remove javax.enterprise.event.Observer

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764517#action_12764517 ] 

Mark Struberg commented on OWB-140:
-----------------------------------

only partly fixed!

I removed the Observer and a few other classes which are not in the JSR-299 spec anymore, but there are still a few TODOs. 

All tests succeed though - so I think we simply miss a few tests ;)

> Remove javax.enterprise.event.Observer
> --------------------------------------
>
>                 Key: OWB-140
>                 URL: https://issues.apache.org/jira/browse/OWB-140
>             Project: OpenWebBeans
>          Issue Type: Sub-task
>          Components: Core, Events
>    Affects Versions: M3
>            Reporter: David Blevins
>            Assignee: Gurkan Erdogdu
>             Fix For: M4
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.