History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18774
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Jevgeni Shumik
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Accessing default access variable through class reference

Created: 17 Jul 08 18:17   Updated: 17 Jul 08 18:20
Component/s: Code Analysis. Inspection

Environment: IntelliJ IDEA (Selena) #7693 on Windows XP Professional

Build: 7,693
Severity: Medium


 Description  « Hide
package firstPackage;

public class First {
  String name;
}
package secondPackage;

import firstPackage.First ;

public class Second extends First {
  //Just extends
}
package firstPackage;

import secondPackage.Second;

public class Third {

  public void accessThroughReference() {
    Second second = new Second();
    second.name = "l"; //<---the name is not visible actually
  }

}

IDEA suggests that name variable is visible. Actually it is not and compiler shows that.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.