Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357990 - ReorganizeCode croaks on a set-values statement
Summary: ReorganizeCode croaks on a set-values statement
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-16 16:09 EDT by Matt Heitz CLA
Modified: 2017-02-23 14:14 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Heitz CLA 2011-09-16 16:09:51 EDT
ReorganizeCode can't handle a set-values statement.

record TestRec
	s string;
end

program x
	function main()
		tr TestRec;
		tr{ s = "a value for field s" };
	end
end



Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
	at java.util.ArrayList.add(ArrayList.java:139)
	at org.eclipse.edt.mof.utils.EList.add(EList.java:53)
	at org.eclipse.edt.gen.ReorganizeCode.visit(ReorganizeCode.java:704)
	... 105 more
Comment 1 Jeff Douglas CLA 2011-09-16 19:37:44 EDT
Ribbitt
Comment 2 Matt Heitz CLA 2011-09-19 10:57:46 EDT
Fixed.