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.
[ BUILD # : 201110070600 ] [ JDK VERSION : 1.6.26 ] Usually, when I reference a nonexistent Java method in the editor, a hint appears with a "Create Method" fix. e.g. Person person = ... String name = getName(person); If the method getName() with param "person" does not exist, a "Create method "getName(com.example.Person)" in ..." hint is given. However, consider this example: String name = getName(getPerson()); If getName() exists, but getPerson() does not exist, no hint is given to create getPerson().
This seems to only happen if the call site is an argument to an external static method.
Fixed in jet-main: http://hg.netbeans.org/jet-main/rev/1955590d6248
Integrated into 'main-silver', will be available in build *201307192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1955590d6248 User: Jan Lahoda <jlahoda@netbeans.org> Log: #203476: fuzzy resolving methods should take enclosing elements and static imported elements into account.
In Ubuntu 14.04 with Netbeans 8 and JDK 8 this type of code completion doesn't work, e.g. assertThat(g.width(), is(3)); from a hamcrest test method where width() doesn't exist yet, Netbeans doesn't offer any hint.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss