You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2021/09/06 16:03:00 UTC
[jira] [Created] (NETBEANS-5984) Spurious 'could not find matching
method' in editor
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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists