Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335628 - [compiler] lowering in array initializer
Summary: [compiler] lowering in array initializer
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 0.8   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 0.8 M5   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-27 17:04 EST by Stephan Herrmann CLA
Modified: 2011-01-29 13:48 EST (History)
0 users

See Also:


Attachments
test & fix (4.38 KB, patch)
2011-01-28 18:00 EST, Stephan Herrmann CLA
no flags Details | Diff

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