Community
Participate
Working Groups
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)
Could you please let us know where we can retrieve the files you are talking about? Thanks.
Are they from http://sourceforge.net/project/showfiles.php?group_id=73357?
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
Checking with our legal if I'm allowed to download these jars.
Sorry but incomplete classpath is not supported. It is impossible to resolve the find(String, Object) method.
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.
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!!
Post 3.2
How about 3.4? This is extremely annoying when trying to navigate even just the SDK sources.
Reopening
*** This bug has been marked as a duplicate of bug 192706 ***