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

Bug 361371

Summary: ClassNotFoundException when Input Handler check box is unchecked
Product: [Eclipse Project] Platform Reporter: Satyam Kandula <satyam.kandula>
Component: AntAssignee: Satyam Kandula <satyam.kandula>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 3.8Flags: Michael_Rennie: review+
Target Milestone: 3.8 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed patch satyam.kandula: review?

Description Satyam Kandula CLA 2011-10-19 06:43:58 EDT
Steps to reproduce:
1. Edit the configuration for a build.xml file
2. Uncheck "Set an Input Handler" in the main tab
3. Use a separate JRE 
4. Launch the target

You will end up with the following error.
Unable to instantiate specified input handler class org.eclipse.ant.internal.ui.antsupport.inputhandler.FailInputHandler : java.lang.ClassNotFoundException
Comment 1 Satyam Kandula CLA 2011-10-19 06:44:50 EDT
This happens because the class that is being referred and the class that is really there are different :(. Will update the patch shortly.
Comment 2 Satyam Kandula CLA 2011-10-19 09:11:50 EDT
Created attachment 205524 [details]
Proposed patch

Used the correct class name. Also added a test.
Comment 3 Satyam Kandula CLA 2011-10-19 09:12:28 EDT
Michael, Please review the patch. Thanks in advance.
Comment 4 Michael Rennie CLA 2011-10-24 12:58:57 EDT
looks like more fallout from bug 264338...

+1 fix looks good and all tests pass.

Pushed to master for M3 - http://git.eclipse.org/c/platform/eclipse.platform.git/commit/?id=2995d4736c296847f794a0a96a263bc786363f15
Comment 5 Michael Rennie CLA 2011-10-28 09:47:13 EDT
verified in I20111027-1800