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 111684 - "Assignment To Itself" not detected
Summary: "Assignment To Itself" not detected
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-02 00:13 UTC by err
Modified: 2007-08-27 15:25 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 err 2007-08-02 00:13:48 UTC
Build 2007073411200
The following should produce the "Assignment to itself" hint/warning.
=====
package xxx.yyy;
public class AssignSelf {
    int a;
    void foo() {
        this.a = a; // this is NOT detected as assignment to self
    }
}
Comment 1 Petr Hrebejk 2007-08-27 15:25:38 UTC
Checking in AssignmentToItself.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/AssignmentToItself.java,v  <--  AssignmentToItself.java
new revision: 1.6; previous revision: 1.5
done