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 53145 - Code-complete for anonymous classes binds to enclosing object instead
Summary: Code-complete for anonymous classes binds to enclosing object instead
Status: RESOLVED DUPLICATE of bug 3549
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-09 20:37 UTC by _ gtzabari
Modified: 2007-11-05 13:38 UTC (History)
0 users

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 _ gtzabari 2005-01-09 20:37:55 UTC
dev build 200501021900
JDK 1.5_01

I have the following code sniplet:

      undoManager = new UndoManager()
      {
        public void
undoableEditHappened(UndoableEditEvent e)
        {
          super.undoableEditHappened(e);
          applyButton.setEnabled(this.canUndo());
        }
      };

when I place the cursor on "this.canUndo()" and
try to code-complete "this" it thinks I am "this"
refers to the enclosing class instead of to the
UndoManager object I am constructing.
Comment 1 Dusan Balek 2005-01-10 09:12:12 UTC

*** This issue has been marked as a duplicate of 3549 ***