You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Gili (JIRA)" <ji...@apache.org> on 2018/01/18 18:40:00 UTC

[jira] [Created] (NETBEANS-291) Highlight difference between actual and expected method parameters

Gili created NETBEANS-291:
-----------------------------

             Summary: Highlight difference between actual and expected method parameters
                 Key: NETBEANS-291
                 URL: https://issues.apache.org/jira/browse/NETBEANS-291
             Project: NetBeans
          Issue Type: Improvement
          Components: java - Editor
         Environment: Product Version: Apache NetBeans IDE Dev (Build 20180117-unknown-revn)
Updates: Updates available
Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
Runtime: Java(TM) SE Runtime Environment 9.0.1+11
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
            Reporter: Gili


When a method is invoked and the actual parameters do not match the type or length of the method prototype we get a tooltip containing a message like this:

{code}
method insert in class OrderRow cannot be applied to given types;   required: 
  Session,ExchangeRow,Instant,boolean,CurrencyPairRow,BigDecimal,BigDecimal   found: 
  Session,ExchangeRow,Instant,CurrencyPairRow,BigDecimal,BigDecimal   reason: actual and formal argument lists differ in length ---- (Alt-Enter shows hints)
{code}

Suggested behavior: If the method has exactly one signature (no method overloading), then calculate a diff between the actual and expected parameters and highlight the difference using colors or bold font. You might be able to provide a diff for methods with multiple signatures but for now let's start simple.

You can use https://bitbucket.org/cowwoc/google-diff-match-patch/wiki/Home to calculate the diff quite easily.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
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