Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357979 - NoSuchMemberError when accessing fields that are declared in combination
Summary: NoSuchMemberError when accessing fields that are declared in combination
Status: CLOSED DUPLICATE of bug 359371
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-16 14:39 EDT by Brian Svihovec CLA
Modified: 2017-02-23 14:20 EST (History)
1 user (show)

See Also:


Attachments
Testcase. (538 bytes, application/octet-stream)
2011-09-16 14:39 EDT, Brian Svihovec CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Svihovec CLA 2011-09-16 14:39:42 EDT
Created attachment 203514 [details]
Testcase.

Import the attached testcase, which contains:

private w, h int;

You will get the following exception during generation:
org.eclipse.edt.mof.codegen.api.TemplateException: java.lang.RuntimeException: org.eclipse.edt.mof.egl.NoSuchMemberError: Member not found: h
	at org.eclipse.edt.mof.codegen.api.TemplateContext.doInvoke(TemplateContext.java:384)
	at org.eclipse.edt.mof.codegen.api.TemplateContext.invoke(TemplateContext.java:260)
	at org.eclipse.edt.gen.javascript.templates.AssignmentStatementTemplate.genStatementBody(AssignmentStatementTemplate.java:21)
	at sun.reflect.GeneratedMethodAccessor459.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.edt.mof.codegen.api.TemplateContext.doInvoke(TemplateContext.java:357)
	at org.eclipse.edt.mof.codegen.api.TemplateContext.invoke(TemplateContext.java:260)
	at org.eclipse.edt.gen.javascript.templates.StatementTemplate.genStatement(StatementTemplate.java:25)
	at org.eclipse.edt.gen.javascriptdev.templates.StatementTemplate.genStatement(StatementTemplate.java:26)
	at sun.reflect.GeneratedMethodAccessor457.invoke(Unknown Source)

Caused by: java.lang.RuntimeException: org.eclipse.edt.mof.egl.NoSuchMemberError: Member not found: h
	at org.eclipse.edt.mof.egl.impl.MemberAccessImpl.getMember(MemberAccessImpl.java:84)
	at org.eclipse.edt.mof.egl.impl.MemberAccessImpl.getType(MemberAccessImpl.java:99)
	at org.eclipse.edt.mof.egl.utils.IRUtils.makeCompatible(IRUtils.java:367)
	at org.eclipse.edt.gen.javascript.templates.AssignmentTemplate.genExpression(AssignmentTemplate.java:28)
	at sun.reflect.GeneratedMethodAccessor460.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.edt.mof.codegen.api.TemplateContext.doInvoke(TemplateContext.java:357)
	... 90 more
Caused by: org.eclipse.edt.mof.egl.NoSuchMemberError: Member not found: h
	at org.eclipse.edt.mof.egl.impl.MemberAccessImpl.resolveMember(MemberAccessImpl.java:130)
	at org.eclipse.edt.mof.egl.impl.MemberAccessImpl.getMember(MemberAccessImpl.java:82)
	... 97 more
Comment 1 Brian Svihovec CLA 2011-09-16 15:07:43 EDT
This blocks the RUI Technical Sample.
Comment 2 Jeff Douglas CLA 2011-10-01 16:40:23 EDT

*** This bug has been marked as a duplicate of bug 359371 ***