Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359389 - Cannot instantiate the type EAny
Summary: Cannot instantiate 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
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 05:53 EDT by pf yu CLA
Modified: 2017-02-23 14:14 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 05:53:48 EDT
Build Identifier: 201109282102

Cannot instantiate the type EAny, it's a abstract class.

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. The issue exists in:
fvt.primitives.clnFlexRecord
Comment 1 Matt Heitz CLA 2011-09-29 10:53:10 EDT
We need to discuss this one with Tim.  Here's the record.

record clnFlexRecord
    aString string;
    anInt int;
    //anAny any;
    anAny any = "";
    aDecimal decimal(9, 2);
    ts timeStamp;
end

The problem is in the method we generate to implement the "set record empty" statement.  In RBD, when an Any field is set empty, we make it null.  But this is EDT and that Any field isn't nullable.  What should we do?
Comment 2 Jeff Douglas CLA 2011-10-19 11:26:04 EDT
changing severity to what it should be
Comment 3 Jeff Douglas CLA 2011-10-20 15:43:57 EDT
this seems to have been fixed by another defect. Please retest.
Comment 4 pf yu CLA 2011-10-20 21:59:09 EDT
I Verified in build 20111020, the problem still exists.
Comment 5 Jeff Douglas CLA 2011-10-21 07:40:54 EDT
There is no clnFlexRecord testcase that I can find.
Please tell me what testcase you are trying to use.
Comment 6 pf yu CLA 2011-10-24 02:30:20 EDT
I used build 20111023. In the directory "generatedJava", the problem exists in line 51 of fvt.primitives.clnFlexRecord.java.
For the EGL part, it's a record which is located in fvt.primitives.TestDictionaryLib.egl
Comment 7 pf yu CLA 2011-11-06 21:37:37 EST
This issue still exists in:
fvt.functioninvocation.TestFuncInvocation09Lib.java
fvt.primitives.clnFlexRecord.java

Please fix it, thanks.
Comment 8 Jeff Douglas CLA 2011-11-08 11:44:18 EST
fixed
Comment 9 pf yu CLA 2011-11-08 21:36:19 EST
Verified in build 20111108, it works fine.