Bug 112292 - Open declaration fails in library with source attachment
Summary: Open declaration fails in library with source attachment
Status: RESOLVED DUPLICATE of bug 192706
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 03:43 EDT by Christian Schweer (only bugzilla-mails accepted) CLA
Modified: 2007-06-27 10:46 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Schweer (only bugzilla-mails accepted) CLA 2005-10-12 03:43:42 EDT
Open declaration fails for all methods in a library with source attachment, if
not all import statements can be resolved.

Steps to reproduce:
1. Create a new java project
2. Include spring.jar with the corresponding source-folder as source attachment
in the project (from spring framework e.g. version 1.2.5)
3. Open the spring class HibernateTemplate
4. Navigate to the find(String) method
5. place cursor on "find" in the return statement
6. Press F3 (Open declaration)

Expected result:
The declaration of find(String, Object[]) (3 lines ahead) is opened

Actual result:
No navigation occurs. The status line displays "Current text selection does not
resolve to a Java element".

Remark:
If you include hibernate.jar in the build path. The steps to reproduce produce
the expected result!


Tested with eclipse-3.1 (build I20050627-1435) on WinXP (SP1 and SP2)
Comment 1 Olivier Thomann CLA 2005-10-12 09:42:47 EDT
Could you please let us know where we can retrieve the files you are talking about?
Thanks.
Comment 2 Olivier Thomann CLA 2005-10-12 09:43:44 EDT
Are they from http://sourceforge.net/project/showfiles.php?group_id=73357?
Comment 3 Christian Schweer (only bugzilla-mails accepted) CLA 2005-10-12 10:30:59 EDT
Sorry for missing that.

spring.jar and the corresponding sources are contained in
"spring-framework-1.2.5.zip" from
http://sourceforge.net/project/showfiles.php?group_id=73357

hibernate.jar is contained in "hibernate-3.0.5.tar.gz" from
http://sourceforge.net/project/showfiles.php?group_id=40712&package_id=127784
Comment 4 Jerome Lanneluc CLA 2005-10-13 07:03:09 EDT
Checking with our legal if I'm allowed to download these jars.
Comment 5 Jerome Lanneluc CLA 2005-10-14 08:34:18 EDT
Sorry but incomplete classpath is not supported. It is impossible to resolve the
find(String, Object) method.
Comment 6 Christian Schweer (only bugzilla-mails accepted) CLA 2005-10-14 08:58:17 EDT
Jerome: Just to avoid a misunderstanding:

I was talking about the class
org.springframework.orm.hibernate3.HibernateTemplate. And there navigating from
inside the find(String):List method the find(String, Object[]):List method.

I could fully understand, that navigating to a method is not supported, if an
object not in the classpath is involved.

But this is not true for the above example. As far as I know the classes List,
String and Object are part of the JDK. So all involved classes are well known.

At least the given error message (in the statusline) is wrong or rather misleading.
Comment 7 Christian Schweer (only bugzilla-mails accepted) CLA 2005-10-14 09:01:37 EDT
Sorry for the second last paragraph. I just reread the paragraph and I think it
could be misinterpreted as sarcastical/offending.

It wasn't meant so!!
Comment 8 Jerome Lanneluc CLA 2006-04-21 06:59:39 EDT
Post 3.2
Comment 9 Nitin Dahyabhai CLA 2007-06-26 16:26:11 EDT
How about 3.4?  This is extremely annoying when trying to navigate even just the SDK sources.
Comment 10 Jerome Lanneluc CLA 2007-06-27 10:46:24 EDT
Reopening
Comment 11 Jerome Lanneluc CLA 2007-06-27 10:46:58 EDT

*** This bug has been marked as a duplicate of bug 192706 ***