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

Bug 327511

Summary: Autocompletions does not work for aliased Classes
Product: z_Archived Reporter: Axel <staff>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED DUPLICATE QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P1 CC: ganoro, kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Axel CLA 2010-10-12 02:46:02 EDT
Build Identifier: 20100617-1415

If a namespaced class is aliased by the use statement, autocompletion does not work for it.

Reproducible: Always

Steps to Reproduce:
Used the following code (\bar\core\MyClass is defined in a separate file):

<?php

namspace foo;
use bar\core\MyClass as BarClass;

class FooClass 
{
    public function doSomething()
    {
        // auto completion does not work here
        $bar = new BarClass();
        $bar->|

        // ... but works in this case:
        $bar2 = new \bar\core\MyClass();
        $bar2->|
    }
}
Comment 1 Axel CLA 2010-10-12 03:02:31 EDT
Maybe related with Bug #327511
Comment 2 Axel CLA 2010-10-12 03:04:09 EDT
Meant Bug #327514, sorry.
Comment 3 Zhongwei Zhao CLA 2011-04-19 01:44:22 EDT
yes,duplicate of 327514,and has been fixed in head

*** This bug has been marked as a duplicate of bug 327514 ***
Comment 4 Kalin CLA 2011-07-28 03:03:23 EDT
Verified.
Closing...