Bug 444116 - Namespace handling (adds unneeded namespace use lines)
Summary: Namespace handling (adds unneeded namespace use lines)
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-15 09:06 EDT by James Bierman CLA
Modified: 2020-05-14 10:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Bierman CLA 2014-09-15 09:06:11 EDT
Eclipse seems to add unneeded namespace use lines. Example:

<?php
(...)
use Company\A\BB as LL;
(...)

Start typing "data_1::" and then select it from auto assist, it becomes:
LL\data_1::a()
which is just fine, however, if we add another of such lines, again start typing "data_1::", then it results in

another use line: use Company\A\BB;
and BB\data_1::a()

while it should just add another of
LL\data_1::a().

End result:

<?php
(...)
use Company\A\BB as LL;
use Company\A\BB; // wrong!
(...)
LL\data_1::a()
BB\data_1::a() // wrong!

I hope this is clear enough, feel free to reply in case something should be more clear.