Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354370

Summary: Java compile error for delegate assignment to an array element
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas, jqian
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-10 08:44:29 EDT
EGL Code:

======================
package explore;
library tester {}
    function runtTests2()
        runTestMtds runTestMethod[2];
        runTestMtds[1] = EBoolean003.runTestConversions02;
        runTestMtds[2] = EBoolean003.runTestConversions03;
    end
end
delegate runTestMethod()    
end
==========================
package explore;
library EBoolean003 {}
    function runTestConversions02()
    end
    function runTestConversions03()
    end
end


Java code:

runTestMtds.set((int)((short) 1) - 1, eze_Lib_explore_EBoolean003().new org.eclipse.edt.javart.Delegate("runTestConversions02", this));

Java Error:

Cannot allocate the member type org.eclipse.edt.javart.Delegate using its compound name when qualified by an enclosing instance. The member type name is 
 resolved relatively to the qualifying instance type
Comment 1 Jeff Douglas CLA 2011-08-12 14:50:28 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-08-15 14:47:27 EDT
verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:06:35 EDT
Closing this defect.