Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348140 - NPE from nested record field access in initializer when generating
Summary: NPE from nested record field access in initializer when generating
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 16:45 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:16 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Spadea CLA 2011-06-02 16:45:44 EDT
I'm not sure if this is a bug in core or a misuse of the IR from the generators. The IR compiles cleanly and "looks correct" as far as I can tell, but throws an error as shown below.

record progrec
	f foorec;
end

record foorec
	s string;
end

program prog
	p progrec{f{s = "test"}};

	function main()
	end
end



Caused by: java.lang.NullPointerException
	at org.eclipse.edt.mof.egl.impl.MemberNameImpl.getType(MemberNameImpl.java:37)
	at org.eclipse.edt.mof.egl.impl.SetValuesExpressionImpl.getType(SetValuesExpressionImpl.java:55)
	at org.eclipse.edt.mof.egl.impl.QualifiedFunctionInvocationImpl.resolveFunction(QualifiedFunctionInvocationImpl.java:110)
	at org.eclipse.edt.mof.egl.impl.QualifiedFunctionInvocationImpl.getTarget(QualifiedFunctionInvocationImpl.java:49)
	... 69 more
Comment 1 Jeff Douglas CLA 2011-10-01 16:44:00 EDT
works now
Comment 2 Justin Spadea CLA 2011-11-04 14:17:53 EDT
Verified