Bug 45354 - [Search] "search/references" be able to search uses of clases without "java source"
Summary: [Search] "search/references" be able to search uses of clases without "java s...
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2003-10-22 04:40 EDT by javi CLA
Modified: 2009-08-30 02:08 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 javi CLA 2003-10-22 04:40:40 EDT
it would be nice if:
"search/references" be able to search uses of clases without "java source 
attachment"


STEPS TO REPRODUCE:

create "clases1y2.jar" and "clases1y2-src.zip" with these classes (and sources):
 - - - -
package es;
public class Clase1 {
             public void invocaClase2Haz() {
                         Clase2 clase2=new Clase2();
                         clase2.haz();
             }
}
 - - - -
package es;
public class Clase2 {
             public void haz() {
                         System.out.println("hecho.");
             }
}




create a project including the external path file "clases1y2.jar" and this
class:

import es.Clase2;
public class UsosClase2 {
             public void x() {
                         Clase2 c=null;
                         c.haz();
             }
}


if you don't attach "clases1y2-src.zip" to "clases1y2.jar" and you put over 
c.haz() to "search references" you will see:
   invocaClase2Haz() - es.Clase1
   x() - UsosClase2

when you attach "clases1y2-src.zip" to "clases1y2.jar" and you put over c.haz()
to "search references" you will see:
   x() - UsosClase2

i ever would like to see this as first case even i can´t see the use detail, 
but i think that is very importan to see all uses and dependences...


thanks 

javi.
Comment 1 Jerome Lanneluc CLA 2004-05-19 11:33:04 EDT
Will consider post 3.0
Comment 2 Jerome Lanneluc CLA 2004-07-06 05:07:41 EDT
Reopening
Comment 3 Frederic Fusier CLA 2004-10-08 12:55:39 EDT
I set your test case with 3.0.1 and 3.1 M2 and got opposite result:
1 reference when source is not attached
2 references when source is attached
which sounds more logical...

Please, confirm that there was a mistake in you test case and that your
requirement is to see the reference in .class file even if source file is not
attached...

Then reopen the bug, thanks
Comment 4 Frederic Fusier CLA 2005-02-17 09:58:55 EST
Closing as never got requested information in a long time
Comment 5 Denis Roy CLA 2009-08-30 02:08:45 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.