Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359937 - NoSuchFunctionError when referencing a strlib function as an annotation
Summary: NoSuchFunctionError when referencing a strlib function as an annotation
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 22:23 EDT by Brian Svihovec 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 Brian Svihovec CLA 2011-10-04 22:23:18 EDT
While working on MVC support for EGL Rich UI, I coded the following record:

record accountRecord
	state String{@uppercase}; 
end

Since there is no support for the upperCase annotation yet, this resolved (I believe) to StrLib.upperCase.  When the part is saved, the following exception is reported (see below).  I have assigned this to compiler, because it seems like it should be a validation error.

org.eclipse.edt.mof.codegen.api.TemplateException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at org.eclipse.edt.mof.codegen.api.TemplateContext.doInvoke(TemplateContext.java:389)
	at org.eclipse.edt.mof.codegen.api.TemplateContext.invoke(TemplateContext.java:261)
	at org.eclipse.edt.gen.javascript.templates.StatementTemplate.genStatementNoBraces(StatementTemplate.java:30)
...
Caused by: org.eclipse.edt.mof.egl.NoSuchFunctionError
	at org.eclipse.edt.mof.egl.impl.QualifiedFunctionInvocationImpl.resolveFunction(QualifiedFunctionInvocationImpl.java:123)
	at org.eclipse.edt.mof.egl.impl.QualifiedFunctionInvocationImpl.getTarget(QualifiedFunctionInvocationImpl.java:51)
	... 87 more
Comment 1 Paul Harmon CLA 2011-10-10 15:57:50 EDT
I have updated the following to add validation for this case:

SettingsBlockAnnotationBindingsCompletor
IProblemRequestor
EGLValidationResources.Properties
AbstractBinder
Comment 2 Brian Svihovec CLA 2011-11-30 14:35:58 EST
Verified and closed in build 20111130.