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.
Currently, usage of Alt-P inside editor does show method parameters, but its names are replaced with "arg0, arg1, .. , argN", thus not giving user info about parameter purpose. This used to work inside "old" NetBeans editor. See attached screenshot. --- NetBeans IDE Dev (Build 060920) 1.5.0_05; Java HotSpot(TM) Server VM 1.5.0_05-b05 Linux version 2.6.12-1.1390_FC4smp running on i386 en_US (nb); UTF-8 NetBeans-dev-060920
Created attachment 34230 [details] screenshot
Passing to Tomas per our agreement.
*** Issue 84918 has been marked as a duplicate of this issue. ***
*** Issue 88360 has been marked as a duplicate of this issue. ***
*** Issue 90382 has been marked as a duplicate of this issue. ***
For me, this is only the case for JDK classes. For project classes it is working properly. The JDK used for the Project is not the same as the default JDK. The src.zip and Javadocs are setup correctly.
*** Issue 91948 has been marked as a duplicate of this issue. ***
*** Issue 94306 has been marked as a duplicate of this issue. ***
Increasing priority due to duplicate
Should be fixed in next milestone.
*** Issue 96652 has been marked as a duplicate of this issue. ***
Support in JavaFileManagers Checking in src/org/netbeans/modules/java/source/classpath/CacheClassPath.java; /cvs/java/source/src/org/netbeans/modules/java/source/classpath/CacheClassPath.java,v <-- CacheClassPath.java new revision: 1.7; previous revision: 1.6 done Checking in src/org/netbeans/modules/java/source/usages/Index.java; /cvs/java/source/src/org/netbeans/modules/java/source/usages/Index.java,v <-- Index.java new revision: 1.9; previous revision: 1.8 done
Checking in modules/java/source/ParamNameResolver.java; /cvs/java/source/src/org/netbeans/modules/java/source/ParamNameResolver.java,v <-- ParamNameResolver.java initial revision: 1.1 done Checking in api/java/source/JavaSource.java; /cvs/java/source/src/org/netbeans/api/java/source/JavaSource.java,v <-- JavaSource.java new revision: 1.33; previous revision: 1.32 done
Checking in src/org/netbeans/modules/java/source/usages/BinaryAnalyser.java; /cvs/java/source/src/org/netbeans/modules/java/source/usages/BinaryAnalyser.java,v <-- BinaryAnalyser.java new revision: 1.9; previous revision: 1.8 done
The param name should work until the archive is modified. When it happens the param names cache should be cleared - started.
Checking in src/org/netbeans/modules/java/source/parsing/FileObjects.java; /cvs/java/source/src/org/netbeans/modules/java/source/parsing/FileObjects.java,v <-- FileObjects.java new revision: 1.7; previous revision: 1.6 done Checking in src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java; /cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v <-- RepositoryUpdater.java new revision: 1.39; previous revision: 1.38 done
Verified. --- NetBeans IDE Dev (Build 070425) 1.6.0_01; Java HotSpot(TM) Server VM 1.6.0_01-b04 Linux version 2.6.12-1.1390_FC4smp running on i386 en_US (nb); UTF-8
Using 200705131800, JDK 1.6u1, Windows XP SP2 I still get the "arg0, arg1,..." display for JUnit methods. e.g. when editing a JUnit test, then typing assertEquals() and hitting Ctrl-P does not show the parameter names See attachment
Created attachment 42395 [details] Screenshot showing wrong CC for parameter names in JUnit test
Do you have sources attached to the junit library?
No I don't have any JUnit sources attached. This is the "default" JUnit setup as it comes out of the box. This was working before the refactoring of the Java support and it is working with 5.5 without problems.
The JUnit sources are not bundled with NetBeans now so I assume it's the reason why parameter names are not available.
But with NB 5.5 it was not necessary to bundle the source code to be able to view parameter names in JUnit tests. So this is a regression (I am aware that the Java infrastructure has been redesigned, but still as an "end-user" I do not expect to lose functionality because of that)
This is a reason why we didn't close the issue. The current build does not support arg names from javadoc but it will be fixed in 6.0.
*** Issue 124152 has been marked as a duplicate of this issue. ***
*** Issue 124148 has been marked as a duplicate of this issue. ***
moving opened issues from TM <= 6.1 to TM=Dev
Please pick up parameter names from Javadoc both for CTRL-P (parameter completion) as well as CTRL-SPACE (Javadoc browser) Currently when I use CTRL-SPACE to view the Javadoc of a method I see: " void someMethod(String arg0, int arg1) parameters: name - ... count - ... " It's confusing for Netbeans to display the right names under Parameters yet use arg0 right above. Also, please consider the highly visible nature of this bug and avoid slipping it past 6.5.
*** Issue 140385 has been marked as a duplicate of this issue. ***
*** Issue 141810 has been marked as a duplicate of this issue. ***
Fixed. Support for parsing parameter names from Javadoc added back. changeset 60fad55cc446 in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=60fad55cc446 changeset 9c3c8a505d57 in main details: http://hg.netbeans.org/main?cmd=changeset;node=9c3c8a505d57
Integrated into 'main-golden', available in build *200808061401* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/9c3c8a505d57 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #85329: Ctrl-P does not show parameter names - fixed. Parsing parameter names from Javadoc added.
We have lots of projects with libs that don't have sources and javadoc. Isn't it possible to parse parameter names from binary class files? As far as I remember, it worked well in NB 5.x.