Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322470

Summary: [Content Assist] Private fields and methods should not be available in CA in the extending class
Product: z_Archived Reporter: Roy Ganor <ganoro>
Component: PDTAssignee: Zhongwei Zhao <zhaozhongwei>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: gadi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Roy Ganor CLA 2010-08-12 03:30:37 EDT
<?php
class A
{
    public $a="a";
    protected $b="b";
    private $c="c"; // Should not be accessible in class B
    public function fun1(){}
    protected function fun2(){}
    private function fun3(){} // Should not be accessible in class B
}
class B extends A
{
    function foo()
    {
        $this->| //CA here
    }
}
$b=new B();
$b->foo();

Expected: c and fun3() should not appear in CA
Actual: Both of them appear
Comment 1 Zhongwei Zhao CLA 2010-08-19 22:12:53 EDT
fixed in head and branch
Comment 2 Gadi Goldbarg CLA 2010-08-30 09:59:27 EDT
[Petyo Tanchev]
Tested on 2.2.1.v20100829
Fixed