You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Chad Schoettger (JIRA)" <ji...@apache.org> on 2006/10/31 22:53:16 UTC
[jira] Created: (BEEHIVE-1152) EventSets with same name in control
hierarchy cause complilation error
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
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
[jira] Updated: (BEEHIVE-1152) EventSets with same name in control
hierarchy cause complilation error
Posted by "Russ Baker (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEEHIVE-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Russ Baker updated BEEHIVE-1152:
--------------------------------
I verified that the compilation errors no longer occur using the attached repro. Verified against SVN 549584. I recommend that this bug be closed.
> EventSets with same name in control hierarchy cause complilation error
> ----------------------------------------------------------------------
>
> Key: BEEHIVE-1152
> URL: https://issues.apache.org/jira/browse/BEEHIVE-1152
> Project: Beehive
> Issue Type: Bug
> Components: Controls
> Affects Versions: 1.0.1
> Reporter: Chad Schoettger
> Assignee: Chad Schoettger
> Fix For: V.Next
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (BEEHIVE-1152) EventSets with same name in control
hierarchy cause complilation error
Posted by "Chad Schoettger (JIRA)" <ji...@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
[jira] Resolved: (BEEHIVE-1152) EventSets with same name in control
hierarchy cause complilation error
Posted by "Chad Schoettger (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-1152?page=all ]
Chad Schoettger resolved BEEHIVE-1152.
--------------------------------------
Fix Version/s: V.Next
Resolution: Fixed
Resolved, svn rev 472169, also added new drt for this case.
> 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
> Fix For: V.Next
>
> 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