Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 173339

Summary: [launching] default main method search scope constraints are too lax
Product: [Eclipse Project] JDT Reporter: Michael Rennie <Michael_Rennie>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M6   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch none

Description Michael Rennie CLA 2007-02-07 15:06:54 EST
When searching for a main method using our MainMethodsSearchEngine, our search scope constraints are too lax, meaning by default it returns all types with main methods even those which are inside system libraries, which makes finding what you are looking for very difficult and confusing.

For example say I have a project with 2 main methods, I right-click on the project and say run as java app, the next dialog I see has my two mains in it, and also every single main from my current JRE.
Comment 1 Michael Rennie CLA 2007-02-07 15:11:25 EST
fixed in HEAD

see JavaMainTab and JavaApplicationLaunchShortcut
Comment 2 Michael Rennie CLA 2007-02-07 15:11:45 EST
please verify Darin W
Comment 3 Michael Rennie CLA 2007-02-07 15:33:44 EST
reopening to attach patch, this fix is not critical to 3.3M5. Chnages have been rolled back in HEAD
Comment 4 Michael Rennie CLA 2007-02-07 15:36:19 EST
Created attachment 58481 [details]
patch

release after 3.3M5 ships
Comment 5 Michael Rennie CLA 2007-02-12 13:37:49 EST
fixed in HEAD

see JavaMainTab and JavaApplicationLaunchShortcut
Comment 6 Michael Rennie CLA 2007-02-12 13:38:04 EST
Please verify Darin W
Comment 7 Darin Wright CLA 2007-02-20 15:06:00 EST
Verified. Modified check box label on Java Main tab to say 'search system libraries' instead of 'search libraries'. I think it's more accurate this way.