Svatopluk Dedic created NETBEANS-5984:
-----------------------------------------

             Summary: Spurious 'could not find matching method' in editor
                 Key: NETBEANS-5984
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5984
             Project: NetBeans
          Issue Type: Bug
          Components: groovy - Editor
            Reporter: Svatopluk Dedic


Consider the following code:
{code:java}
            def instance = value[0];
            def propertyName = value[1];
            observable = Util.getJavaFXProperty(instance, propertyName)

{code}
The *instance*  and *propertyName* lack completely type information; static 
type analysis reports an error in this case.

It's not wise to completely disable 'method not found' errors, as typed code 
would not be hinted either. It could be possible to suppress error if the 
method call parameters type-evaluates to j.l.Object or something similarly 
generic, in the case there's at least method with the appropriate arity.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to