Bug 399073 - Unable to attach java source code (tested on Android)
Summary: Unable to attach java source code (tested on Android)
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.2.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-25 07:36 EST by Cezary Wagner CLA
Modified: 2022-07-03 14:41 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 Cezary Wagner CLA 2013-01-25 07:36:45 EST
Tested on official android.jar and sources/android-17.

Problem is not logged in problems and no feedback why it happen.

Same problem in 3.8.1.

What I do:

1. F3 to go to source code
2. No source code screen is open and choose attach source.
3. Choose external folder method.
4. Points to [Android path]/source/android-17 and choose OK.
5. Nothing happen still is no source code screen.

Alternativly (preferences changes not save at all):

1. Project -> Properties -> Java Build Path -> Libraries.
2. Android 4.2 -> android.jar -> source attachement -> edit.
3. Choose external folder method.
4. Points to [Android path]/source/android-17 and choose OK.
5. Preferences show that source attachment is [Android path]/source/android-17.
6. Click OK to save setting.
7. Reopen Project -> Properties -> Java Build Path -> Libraries.
8. BUG: nothing in Android 4.2 -> android.jar -> source attachement - SHOULD BE: what was visible before save Android path]/source/android-17

I not allo to analyze code correctly!

How to reproduce:
1. Install Eclipse.
2. Install Android SDK with sources.
3. Install Android plugin.
4. Try to F3 and Android code.
Comment 1 Jay Arthanareeswaran CLA 2013-01-25 08:13:12 EST
Are you able to do this on a regular Java project? I am not sure if the android classpath container overrides the default behavior
Comment 2 Cezary Wagner CLA 2013-02-04 08:18:08 EST
Not tested in Java regular project since not have such need :)

I do small test and is possible to attach sources to "library" also invalid sources but not see Android library to test it and not know how to create it as not "external library" but "library".
Comment 3 Eclipse Genie CLA 2020-06-09 19:06:18 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Eclipse Genie CLA 2022-07-03 14:41:39 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.