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

Bug 357990

Summary: ReorganizeCode croaks on a set-values statement
Product: z_Archived Reporter: Matt Heitz <mheitz>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.