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

Bug 359396

Summary: The method get(int) is undefined for the type EAny
Product: z_Archived Reporter: pf yu <pfyu>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: jeffdouglas, jqian, mheitz, pfyu, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description pf yu CLA 2011-09-29 06:56:35 EDT
Build Identifier: 201109282102

The method get(int) is undefined for the type EAny

Reproducible: Always

Steps to Reproduce:
1. Check out project "org.eclipse.edt.eunit.test" from kan-cvs.
2. Add java generator to the project.
3. Clean the whole workspace.
4. Such errors exist in many places, for example:
fvt.json.JSONTestsLib
Comment 1 Matt Heitz CLA 2011-09-29 10:12:12 EDT
This happens when the array expression of a subscript expression comes from a dynamic access.  Simple exmple: 

record R1
  a int[] = new int[ 3 ];
end

function testIt()
  r1 R1;
  myAny any = r1;
  (myAny as R1).a[ 2 ] = 5;
end
Comment 2 Jeff Douglas CLA 2011-09-29 22:27:31 EDT
The problem is not really as the example states. It is because the method get and set are missing from EAny, for accessing arrays in an any type.
Comment 3 Matt Heitz CLA 2011-10-04 17:04:31 EDT
Fixed.
Comment 4 pf yu CLA 2011-10-12 05:02:31 EDT
Verified in build 201110110900