Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366723

Summary: [xtend2] bogus error message: "Missing parentheses for calling method"
Product: [Modeling] TMF Reporter: Stephan Herrmann <stephan.herrmann>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sven.efftinge
Version: 2.1.1Flags: sven.efftinge: juno+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.