Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318982 - Improve OQL documentation for properties accessors
Summary: Improve OQL documentation for properties accessors
Status: RESOLVED FIXED
Alias: None
Product: MAT
Classification: Tools
Component: Doc (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 05:19 EDT by Andrew Johnson CLA
Modified: 2010-07-06 05:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Johnson CLA 2010-07-06 05:19:25 EDT
http://www.eclipse.org/forums/index.php?t=msg&th=171263&start=0&
The help system states that it's possible to call methods through reflection

Quote:

Calling Java methods

[ <alias> . ] @<method>( [ <expression>, <expression> ] ) ...

Adding ( ) forces OQL to interpret this as a Java method call. The call is executed via reflection. Common Java methods.



But I can't get it working. For example, this is the result when trying to call getTime() from the java.util.Date

Quote:

Executed Query:
SELECT d.@getTime() FROM java.util.Date d

Problem reported:
Method getTime not found in object java.util.Date [id=0x647cd5e8]



The same happens with all methods that don't belong to the java.lang.Object class.

Am I doing something wrong or is this feature not supported yet?

Thx!


shows a misunderstanding of properties accessors, which operate on the Memory Analyzer model objects, not the actual objects. The help needs to be improved, with links to the model API doc.
Comment 1 Andrew Johnson CLA 2010-07-06 05:21:35 EDT
I've updated propertiesaccessors.dita and propertiesaccessors.html