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 127882 - CC offers anonymous inner classes
Summary: CC offers anonymous inner classes
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-20 14:42 UTC by Jan Horvath
Modified: 2009-11-02 11:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Horvath 2008-02-20 14:42:45 UTC
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
Comment 1 Rohan Ranade 2008-03-03 10:13:23 UTC
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
Comment 2 Jan Lahoda 2008-03-26 15:42:48 UTC
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.
Comment 3 Jan Becicka 2008-08-14 09:56:52 UTC
Maybe now is the right time to try the fix?
Comment 4 Jan Lahoda 2008-12-05 14:49:59 UTC
Probably later.
Comment 5 Quality Engineering 2009-11-02 11:02:19 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX