Return-Path: Delivered-To: apmail-beehive-dev-archive@www.apache.org Received: (qmail 65599 invoked from network); 1 Nov 2006 16:41:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 16:41:29 -0000 Received: (qmail 72096 invoked by uid 500); 1 Nov 2006 16:41:39 -0000 Delivered-To: apmail-beehive-dev-archive@beehive.apache.org Received: (qmail 72087 invoked by uid 500); 1 Nov 2006 16:41:39 -0000 Mailing-List: contact dev-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list dev@beehive.apache.org Delivered-To: moderator for dev@beehive.apache.org Received: (qmail 27193 invoked by uid 99); 31 Oct 2006 21:57:49 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Message-ID: <17501254.1162331837152.JavaMail.root@brutus> Date: Tue, 31 Oct 2006 13:57:17 -0800 (PST) From: "Chad Schoettger (JIRA)" To: dev@beehive.apache.org Subject: [jira] Updated: (BEEHIVE-1152) EventSets with same name in control hierarchy cause complilation error In-Reply-To: <33107897.1162331596459.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/BEEHIVE-1152?page=all ] Chad Schoettger updated BEEHIVE-1152: ------------------------------------- Attachment: BEEHIVE-1152-SAMPLE.zip Sample controls for this bug. > EventSets with same name in control hierarchy cause complilation error > ---------------------------------------------------------------------- > > Key: BEEHIVE-1152 > URL: http://issues.apache.org/jira/browse/BEEHIVE-1152 > Project: Beehive > Issue Type: Bug > Components: Controls > Affects Versions: 1.0.1 > Reporter: Chad Schoettger > Assigned To: Chad Schoettger > Attachments: BEEHIVE-1152-SAMPLE.zip > > > A compilation error is generated when you have the following: > @ControlInterface > public interface SuperControl { > @EventSet() > public interface CtrlCallback { > void onSuperEvent(); > } > } > @ControlInterface > public interface SubControl extends SuperControl { > @EventSet() > public interface CtrlCallback { > void onSubEvent(); > } > } > The compilation error is: > [apt] D:\beehive\trunk\controls\test\build\junit-controls-beansrc\org\apache\beehive\controls\test\controls\eventsetInheritance2\SubControlBean.java:239: getCtrlCallbackListeners() in org.apache.beehive.controls.test.controls.eventsetInheritance2.SubControlBean cannot override getCtrlCallbackListeners() in org.apache.beehive.controls.test.controls.eventsetInheritance2.SuperControlBean; attempting to use incompatible return type > [apt] found : org.apache.beehive.controls.test.controls.eventsetInheritance2.SubControl.CtrlCallback[] > [apt] required: org.apache.beehive.controls.test.controls.eventsetInheritance2.SuperControl.CtrlCallback[] > [apt] public synchronized org.apache.beehive.controls.test.controls.eventsetInheritance2.SubControl.CtrlCallback [] getCtrlCallbackListeners() > [apt] ^ > [apt] Note: Some input files use unchecked or unsafe operations. > [apt] Note: Recompile with -Xlint:unchecked for details. > [apt] 1 error > I'll attach a zip containing the full source of the controls. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira