Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-996

Compilation error on an extended control bean when callback intf on base ctrl intf and extended crtl intf have same name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • None
    • Controls
    • None
    • Win XP

    Description

      The control bean generated for the control extension has ambiguous reference to Callback interface in the callback listener methods when there is a callback interface extension in the control extension as shown below:

      @ControlInterface
      interface BaseControl {

      @EventSet
      public interface Callback

      { void method1(); }

      }

      @ControlExtension
      interface ExtendedControl extends BaseControl {

      @EventSet
      public interface Callback extends BaseControl.Callback

      { void method2(); }

      }

      Generated ControlBean listener method:
      public class ExtendedControlBean extends BaseControlBean implements ExtendedControl {
      public synchronized void removeCallbackListener(Callback listener)

      { CallbackNotifier notifier = (CallbackNotifier)getEventNotifier(Callback.class); //ambiguous reference as there is a Callback in BaseControlBean and ExtendedControl notifier.removeListener(listener); }

      }

      Is there a work around for this other than re-naming the interface in the extended control?

      Attachments

        Activity

          People

            Unassigned Unassigned
            pbollineni Pradeep Bollineni
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: