Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 216465 - toggling breakpoint in source file not on build path creates duplicate
Summary: toggling breakpoint in source file not on build path creates duplicate
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-24 11:25 EST by Darin Wright CLA
Modified: 2008-05-23 11:29 EDT (History)
2 users (show)

See Also:


Attachments
workspace for reproducing the issue (312.40 KB, application/binary)
2008-05-23 08:45 EDT, Vadim Dmitriev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2008-01-24 11:25:59 EST
M20080123-0800

Add a .java file to a folder that is not on the buildpath. Double-click to create a breakpoint in the file (works). Double-clicking again to remove the breakpoint results in multiple breakpoints being created at the same location.
Comment 1 Darin Wright CLA 2008-01-24 11:27:00 EST
Only appears to be a problem with line breakpoints. Method breakpoints and watchpoints are created/removed as expected.
Comment 2 Michael Rennie CLA 2008-05-22 11:18:00 EDT
marking worksforme, cannot reproduce using I20080521-2000
Comment 3 Vadim Dmitriev CLA 2008-05-23 07:45:09 EDT
Just checked breakpoint removing bug author mentioned: it's still there in build I20080521-2000. I created clean workspace and clean project. Added external jar to  project and attached sources to it. And on specific line of specific file in the jar added BP cannot be removed by clicking on the ruler.

OS: WinXP SP2
JVM: Sun 1.5.0_14

I'll attach my workspace shortly.
Comment 4 Vadim Dmitriev CLA 2008-05-23 08:45:12 EDT
Created attachment 101719 [details]
workspace for reproducing the issue

Steps to reproduce:
1. switch eclipse to attached workspace
2. Add smslib.jar as external jar to project 123 (included in archive)
3. Link sources to smslib.jar (/src/ folder, also included)
4. Open org.smslib.AGateway in that jar
5. Try to enable/disable breakpoint on line 681 ( one with "while(true)" )

I can't remove/disable it (it just duplicates) but with 'breakpoints' view.
Comment 5 Darin Wright CLA 2008-05-23 10:48:34 EDT
re-open
Comment 6 Michael Rennie CLA 2008-05-23 10:56:54 EDT
re-resolving as worksforme. 

The issue about external source from an archive is being tracked in bug 203807, and this bug deals with external source NOT in an archive. Will update 203807 about comments 3 and 4 and the attached workspace, thanks for the test case Vadim.
Comment 7 Vadim Dmitriev CLA 2008-05-23 11:29:45 EDT
Michael, thanks for clarification. I misunderstood this issue's description in the first place.
Just one remark:  seems that this issue is about breakpoints in *.java files not included on the build path at all. I just extracted jar file and added 'external class folder' to the referenced resources and problem with breakpoint toggling remained.