Issue Details (XML | Word | Printable)

Key: BEEHIVE-998
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: matt c
Reporter: Pradeep Bollineni
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Beehive

Compilation error for generated client initializer due to generated eventAdaptor not implementing methods in super intf of EventSet intf

Created: 09/Nov/05 12:50 PM   Updated: 07/Jul/06 02:00 AM
Return to search
Component/s: Controls
Affects Version/s: 1.0
Fix Version/s: 1.0.2

Time Tracking:
Not Specified

Resolution Date: 07/Jul/06 02:00 AM


 Description  « Hide
Have the following control interface and extension definitions:
@ControlInterface interface BaseControl {
       @EventSet interface BaseCallback {
                        void base_callback();
         }
}

@ControlExtension interface DerivedControl {
        @EventSet interface DerivedCallback extends BaseCallback {
                 void derived_callback();
         }
}

Generated event adapter class in the client initializer using the DerivedControl:
 public static class ControlClientDerivedControlEventAdaptor
    implements DerivedControl.DerivedCallback,
    EventAdaptor, java.io.Serializable
    {
        processes.parent2SBC _client;
        
        public ControlClientDerivedControlEventAdaptor(processes.parent2SBC client) { _client = client; }
        
        public Object getClient() { return _client; }
        
        public void derived_callback()
        {
            _client.derived_callback_clientResponse();
        }
    }

Get a compilation error for the client initalizer as the generated ControlClientDerivedControlEventAdaptor does not implement the callback super interface method base_callback.

Is there a workaround?
Thanks
Pradeep Bollineni

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pradeep Bollineni added a comment - 01/Dec/05 05:54 AM
In the example, replace "@ControlExtension interface DerivedControl" with "@ControlExtension interface DerivedControl extends BaseControl"

Eddie O'Neil added a comment - 03/Mar/06 12:01 PM
I think that this was fixed in SVN 366968. Need to double check that it's the right thing to do; then I'll resolve this bug.

Chad Schoettger added a comment - 07/Jun/06 11:12 PM
This still appears to be a problem -- slightly different now though.

An error is still generated when compiling the ClientInitializer but the error is that the EventAdapter 'is not abstract and does not override abstract method(s) defined in the superinterface'.


Chad Schoettger added a comment - 07/Jun/06 11:17 PM
Moving to v.next for fix.

Eddie O'Neil added a comment - 19/Jun/06 10:04 AM
I'm not likely to get to this any time soon -- moving to unassigned; someone else should feel free to pick this up.

Chad Schoettger added a comment - 07/Jul/06 02:00 AM
Fixed, svn rev 417867.

The fix consisted of the modification of the ClientInitializer velocity template to add eventset superclass methods to the generated event adapter inner class of a client initializer. Also added a new test for this case.