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.
As shown in link [1], groovy supports @Singleton annotation which can be used directly on a class definition. This AST transformation results in creation of the field called "instance" and accessor method called "getInstance()". Our code completion should take this transformation into account and show both field and method when @Singleton is used. Example: @Singleton class Showcase { } Showcase show = new Showcase(); show.^ .. using CC on the ^ location should shown instance field and getInstance() method. [1] http://groovy.codehaus.org/Singleton+transformation
Fixed in: web-main #5a5c60a752a3
Related commit: web-main #578de036632b Fixes use case when code completion is invoked without any prefix
Integrated into 'main-golden', will be available in build *201303272300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5a5c60a752a3 User: Martin Janicek <mjanicek@netbeans.org> Log: #227969 - [cc] Support for @Singleton transformation