Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322470 - [Content Assist] Private fields and methods should not be available in CA in the extending class
Summary: [Content Assist] Private fields and methods should not be available in CA in ...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Zhongwei Zhao CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 03:30 EDT by Roy Ganor CLA
Modified: 2020-05-14 11:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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