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

Bug 322485

Summary: Go to sourse (ctrl+click) acts wrong by multiple options
Product: z_Archived Reporter: Roy Ganor <ganoro>
Component: PDTAssignee: Zhongwei Zhao <zhaozhongwei>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: eclipse-01, gadi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Roy Ganor CLA 2010-08-12 05:06:19 EDT
Have the following files in your project:
file AAA.php
<?php
class AAA {

    function some_function()
    {
        echo "You are in class AAA";
    }
}

file BBB.php:
<?php
class BBB {

    function some_function()
    {
        echo "You are in class BBB";
    }
}

file file1.php
<?php
if ($test=123)
{
    $a=new AAA();
}
else 
{
    $a= new BBB();	
}

$a->some_function();

Crtl+click on the last line on some_function()

Expected: You are offered to choose one of the files/classes in AAA.php and BBB.php 
Actual: Always BBB opens
Comment 1 Zhongwei Zhao CLA 2010-08-25 00:47:31 EDT
fixed in head and branch
Comment 2 Gadi Goldbarg CLA 2010-08-30 08:01:31 EDT
[Petyo Tanchev]

Tested on 2.2.1.v20100829
Fixed