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

Summary: Ctrl+P doesn't show parameters for non-first arguments
Product: java Reporter: Vladimir Voskresensky <vv159170>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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"