Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.6.1.M1
-
Fix Version/s: 2.8.0.Release
-
Component/s: Inferencing Engine
-
Labels:None
-
Number of attachments :
Description
Consider the following interface:
package test; public interface I { String getProp(); }
and the following Groovy class:
package test class A { String myMethod(I owner) { doNothing { return owner.prop } } Object doNothing(Closure<Object> c) { return c.call() } }
Look at the body of myMethod. The prop property of owner is underlined because at that point owner is not recognized as the "owner" method parameter of myMethod: the parser seems to think it's the owner of the closure, although the "mark occurences" and the "go to declaration" features work correctly.
Activity
Andrew Eisenberg
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Component/s | Inferencing Engine [ 14687 ] | |
| Component/s | Parser [ 15153 ] |
Andrew Eisenberg
made changes -
| Fix Version/s | 2.8.0.Release [ 18618 ] |
Andrew Eisenberg
made changes -
| Assignee | Andrew Eisenberg [ werdna ] |
Please note that also the code assist is wrong just like the highlighting: if you try to invoke code assist at owner.| at that line, the "prop" property is not proposed.