Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322479 - [Content Assist] constructor method should not be proposed by code assist
Summary: [Content Assist] constructor method should not be proposed by code assist
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 04:41 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 04:41:49 EDT
Code:
class person {
    private $name;
    
    function __construct($name) {
        $this->setName($name);
    }
    /**
     * @return the $name
     */
    public function getName() {
        return $this->name;
    }

    /**
     * @param field_type $name
     */
    public function setName($name) {
        $this->name = $name;
    }

}

$x = new person("gadi");

echo $x->| should not show constructor
Comment 1 Zhongwei Zhao CLA 2010-08-19 22:13:09 EDT
fixed in head and branch
Comment 2 Zhongwei Zhao CLA 2010-08-20 00:17:04 EDT
there is one case I have not fixed:
we can call superclass' constructor in any of subclass' method
Comment 3 Zhongwei Zhao CLA 2010-08-23 05:18:21 EDT
fixed in head and branch
Comment 4 Petyo Tanchev CLA 2010-08-31 10:52:47 EDT
Tested on 2.2.1.v20100829
Fixed