Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359396 - The method get(int) is undefined for the type EAny
Summary: The method get(int) is undefined for the type EAny
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 06:56 EDT by pf yu CLA
Modified: 2017-02-23 14:17 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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