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 112078

Summary: invalid hint 'Assignment To Itself'
Product: java Reporter: athompson <athompson>
Component: HintsAssignee: Petr Hrebejk <phrebejk>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description athompson 2007-08-06 16:12:13 UTC
1. in 'Tools-->Options-->Hints-->General', make sure 'Assignment To Itself' is checked
2! create class 'Foo' with this code:

public class Foo
{
    private String name;
    private int value;
    
    public Foo(String name, int value)
    {
        this.name = name;
        this.value = value;
    }
    
    public void copy(Foo foo)
    {
        this.name = foo.name;
        this.value = foo.value;
    }
}

the two lines in the 'copy' method are incorrectly highlighted.

Also, capitalization in the 'General' hints option is very inconsistent.
Comment 1 Jiri Prox 2007-08-07 08:38:48 UTC
This is duplicate of issue 110495, Thanks for your report

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