Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366723 - [xtend2] bogus error message: "Missing parentheses for calling method"
Summary: [xtend2] bogus error message: "Missing parentheses for calling method"
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.1.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 11:19 EST by Stephan Herrmann CLA
Modified: 2017-10-31 11:25 EDT (History)
1 user (show)

See Also:
sven.efftinge: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2011-12-14 11:19:41 EST
In version 2.0 of Xtend2 I could write
  obj.attribute()
to invoke the Java getter getAttribute()
in 2.1.1 the validator complains
  "Missing parentheses for calling method"

If that message were right I would fix the problem by adding what's missing.
By contrast *removing* the parens fixes the problem.
The following two appear to be legal in 2.1.1:
  obj.attribute
  obj.getAttribute()

I haven't checked if this incompatible change in the validator has been
documented in the help / migration guide, but a better error message
would already help :)
Comment 1 Sven Efftinge CLA 2013-09-16 12:58:19 EDT
The message is now that the method 'attribute()' doesn't exist.
Comment 2 Eclipse Webmaster CLA 2017-10-31 11:25:15 EDT
Requested via bug 522520.

-M.