beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Schoettger (JIRA)" <>
Subject [jira] Created: (BEEHIVE-1152) EventSets with same name in control hierarchy cause complilation error
Date Tue, 31 Oct 2006 21:53:16 GMT
EventSets with same name in control hierarchy cause complilation error

                 Key: BEEHIVE-1152
             Project: Beehive
          Issue Type: Bug
          Components: Controls
    Affects Versions: 1.0.1
            Reporter: Chad Schoettger
         Assigned To: Chad Schoettger

A compilation error is generated when you have the following:

public interface SuperControl {

  public interface CtrlCallback {
      void onSuperEvent();

public interface SubControl extends SuperControl {
   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\
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:
For more information on JIRA, see:


View raw message