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.
Hg ID: e1d63ac45a19+ tip -create web application with spring framework -open dispatcher-servlet.xml -start typing <bean name="test" class="org.apache.commons.logging. -invoke CC ERROR: anonymous inner classes like LogFactory$1 are offered
After investigation, found that the anonymous inner classes are being incorrectly marked with TOP_LEVEL in their NestingKind. If the same class (org.apache.commons.logging.LogFactory) is in put in the project's source path (after removing dependency on commons-logging library), the anonymous classes are not shown. For debugging, please look at org.netbeans.modules.spring.beans.completion.CompletionManager:636
I have a possible fix, but it is quite dangerous, so I do not want to put it into 6.1. May be workarounded in the completion provider see org.netbeans.modules.editor.java.LazyTypeCompletionItem.isAnnonInner for details.
Maybe now is the right time to try the fix?
Probably later.
NetBeans.org Migration: changing resolution from LATER to WONTFIX