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 170742 - ncorrectly reports "attribute has private access in X"
Summary: ncorrectly reports "attribute has private access in X"
Status: RESOLVED DUPLICATE of bug 168894
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-21 09:44 UTC by craigday
Modified: 2009-08-21 09:51 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 craigday 2009-08-21 09:44:36 UTC
Netbeans incorrectly reports "attribute has private access in SomeClass" in the following code. It is a private 
attribute but there is nothing illegal about referencing it in this manner:

public class SomeClass {

    private String attribute;

    public <T extends SomeClass> void doSomething(T target) {
        target.attribute = "theValue";
    }
}
Comment 1 Max Sauer 2009-08-21 09:51:09 UTC
This is a duplicate of issue 168894. Please see the explanation there.

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