Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34A0D6D84 for ; Thu, 4 Aug 2011 11:14:05 +0000 (UTC) Received: (qmail 68574 invoked by uid 500); 4 Aug 2011 11:14:04 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 67032 invoked by uid 500); 4 Aug 2011 11:13:54 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 67004 invoked by uid 99); 4 Aug 2011 11:13:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 11:13:52 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 11:13:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1297FA7171 for ; Thu, 4 Aug 2011 11:13:27 +0000 (UTC) Date: Thu, 4 Aug 2011 11:13:27 +0000 (UTC) From: "David Humeniuk (JIRA)" To: dev@felix.apache.org Message-ID: <1613968207.7700.1312456407057.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1320964331.2888.1312319667087.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (FELIX-3064) BundleEvent is not serializable even though it extends EventObject which implements Serializable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079325#comment-13079325 ] David Humeniuk commented on FELIX-3064: --------------------------------------- If BundleEvent is not intended to be serializable then why does it extend EventObject which implements the Serializable interface? By inherently implementing the Serializable interface it is in fact saying it is intended to be serializable (at least by the contract of that interface). This contract should force all implementers to make sure the realized class is serializable. > 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