Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361371 - ClassNotFoundException when Input Handler check box is unchecked
Summary: ClassNotFoundException when Input Handler check box is unchecked
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.8 M3   Edit
Assignee: Satyam Kandula CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 06:43 EDT by Satyam Kandula CLA
Modified: 2011-10-28 09:47 EDT (History)
1 user (show)

See Also:
Michael_Rennie: review+


Attachments
Proposed patch (2.38 KB, patch)
2011-10-19 09:11 EDT, Satyam Kandula CLA
satyam.kandula: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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