This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250326 - Ctrl+P doesn't show parameters for non-first arguments
Summary: Ctrl+P doesn't show parameters for non-first arguments
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 08:33 UTC by Vladimir Voskresensky
Modified: 2015-02-10 09:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2015-02-10 08:33:24 UTC
callFun(arg1, arg2, arg3)
before Ctrl+P worked at any position between ().
Now it works only inside arg1 and doesn't work to the right from comma till ")"

Product Version: NetBeans IDE Dev (Build 20150201-f871ef75f8a1)
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 2.6.32-50-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Vladimir Voskresensky 2015-02-10 08:45:06 UTC
I have to be more specific. It works for some cases and doesn't work at "|" and to the right for the following code:

  protected static int invokeCompiler(String ... args) throws Throwable {
    char$ptr cppArgs[] = CollectionUtils.transform(args, |ExpandEnvMacroses, false);
    return driverStatics.main(args.length, create_type$ptr(cppArgs));
  }
--- where CollectionUtils ---
  public static <F, T> T[] transform(F[] from, Converter<F, T> converter, boolean nullTerminate) {
    T[] to = (T[]) Array.newInstance(converter.getToClass(), from.length + (nullTerminate ? 1 : 0));
    for (int i = 0; i < from.length; i++) {
      to[i] = converter.convert(from[i]);
    }
    if (nullTerminate) {
      to[to.length-1] = null;
    }
    return to;
  }
Comment 2 Vladimir Voskresensky 2015-02-10 08:45:37 UTC
probably it didn't work before either, so removing "regression"