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

Bug 353499

Summary: Can't initialize flexible record
Product: z_Archived Reporter: Justin Spadea <jspadea>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas, lasher
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Justin Spadea CLA 2011-08-01 09:57:17 EDT
Using record:
record myrec
	i int = 9;
end


The following field results in a null record:
m myrec;

Each of the following results in a compile error:
m myrec{};
m myrec = new myrec;

The error is:
Bound mismatch: The generic method ezeCopyTo(AnyValue, V) of type AnyValue is not applicable for the arguments (myrec, myrec). The inferred type myrec is not a valid substitute for the bounded parameter <V extends AnyValue>
Comment 1 Jeff Douglas CLA 2011-08-05 09:02:49 EDT
fixed
Comment 2 Justin Spadea CLA 2011-09-08 14:19:22 EDT
Verified