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

Bug 335628

Summary: [compiler] lowering in array initializer
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8   
Target Milestone: 0.8 M5   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
test & fix none

Description Stephan Herrmann CLA 2011-01-27 17:04:44 EST
It seems the following code fails to perform lowering:
  
  MyRole r = ...
  MyBase[] bs = new MyBase[] { r };

On the one hand, this compiles fine, but on the other hand I just
saw an ArrayStoreException at runtime.

should investigate.
Comment 1 Stephan Herrmann CLA 2011-01-28 18:00:05 EST
Created attachment 187891 [details]
test & fix

The issue was a simple omission in one of our visitors. Fixed.
Comment 2 Stephan Herrmann CLA 2011-01-28 18:02:20 EST
Patch has been committed as r1271, r1272.
Comment 3 Stephan Herrmann CLA 2011-01-29 13:48:39 EST
Verified for 0.8M5 using build 201101290806.