Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327511 - Autocompletions does not work for aliased Classes
Summary: Autocompletions does not work for aliased Classes
Status: CLOSED DUPLICATE of bug 327514
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 02:46 EDT by Axel CLA
Modified: 2020-05-14 10:16 EDT (History)
2 users (show)

See Also:


Attachments

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