[ 
https://issues.apache.org/jira/browse/FELIX-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078982#comment-13078982
 ] 

Richard S. Hall commented on FELIX-3064:
----------------------------------------

Perhaps I spoke too soon. I guess I wasn't thinking, because BundeEvent is a 
concrete type that comes from the OSGi Alliance companion code. So, 
technically, I could modify the standard code and mark it as transient (in R4.3 
there are actually two bundle objects referenced by the event now), but I'm not 
sure I want to do this. Talking it over with BJ Hargrave (OSGi CTO), he says 
that BundleEvent is not intended to be serializable and neither are any of the 
other events. Which means that you likely just have to live with it. Even if I 
decided to modify the standard BundleEvent class, other frameworks don't, so 
you'd end up being tied to the Felix framework implementation. In the end, it's 
probably better for you to deal with reality in this case, rather than try to 
avoid it. Given that, i'd be inclined to close this issue as "WON'T FIX".

> BundleEvent is not serializable even though it extends EventObject which 
> implements Serializable
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3064
>                 URL: https://issues.apache.org/jira/browse/FELIX-3064
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>         Environment: Don't believe this is relavent but running on Linux 
> (CentOS), Sun JVM 1.6.0.14
>            Reporter: David Humeniuk
>
> When attempting to serialize BundleEvent, it trips up on serializing 
> BundleImpl which would figure to be a member of BundleEvent.  BundleImpl 
> would either need to be serialiable or BundleEvent shouldn't try to serialize 
> that actual member.
> This causes a problem for me since I'm using the EventAdmin service to post 
> events through RMI.  I would rather not have to put some ugly code that 
> strips out things that say that are serialiable but really aren't.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to