Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5984

Spurious 'could not find matching method' in editor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • groovy - Editor
    • None

    Description

      Consider the following code:

                  def instance = value[0];
                  def propertyName = value[1];
                  observable = Util.getJavaFXProperty(instance, propertyName)
      
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sdedic Svatopluk Dedic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: