Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322485 - Go to sourse (ctrl+click) acts wrong by multiple options
Summary: Go to sourse (ctrl+click) acts wrong by multiple options
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Zhongwei Zhao CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 05:06 EDT by Roy Ganor CLA
Modified: 2020-05-14 11:08 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 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