Bug 260957 - Code assist shows duplicate methods if they are part of interface
Summary: Code assist shows duplicate methods if they are part of interface
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
: 260050 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-13 19:59 EST by Tom Walter CLA
Modified: 2020-05-14 11:08 EDT (History)
5 users (show)

See Also:
ganoro: iplog+


Attachments
fix and test (2.96 KB, patch)
2009-01-25 10:11 EST, Vadim Punski CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Walter CLA 2009-01-13 19:59:51 EST
Build ID: M20080911-1700

Steps To Reproduce:
<?php
interface ITest {
	public function testFunc();
}
class Test implements ITest {
	public function testFunc() {}
}
$test = new Test();
$test->| // <- cursor location
?>

Code assist at location above will show testFunc twice, once for the class and once for the interface.

It only needs to show it for the class.

More information:
Comment 1 Vadim Punski CLA 2009-01-25 10:11:31 EST
Created attachment 123672 [details]
fix and test

fixed in a trunk version.
test provided.
Comment 2 Roy Ganor CLA 2009-01-25 12:10:05 EST
contributed by Vadim
Comment 3 Gadi Goldbarg CLA 2009-01-30 07:41:23 EST
Verified fixed in pdt-all-in-one
2.1.0M4
I'm closing it.
Kalin Yanev
kalin.a@zend.com
Comment 4 Michael Spector CLA 2009-05-08 18:21:58 EDT
*** Bug 260050 has been marked as a duplicate of this bug. ***