| Summary: | setter / getter step filter test failures on Mac | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Michael Rennie <Michael_Rennie> | ||||
| Component: | Debug | Assignee: | Michael Rennie <Michael_Rennie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 3.5.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Michael Rennie
The test failure looks like the creation of the step request failed which ended up causing us to pass in a null request to be removed from the manager.
We should change the code a bit in JDIThread to prevent this NPE in the future, from:
manager.deleteEventRequest(getStepRequest());
to:
StepRequest req = getStepRequest();
if(req != null) {
manager.deleteEventRequest(req);
}
Created attachment 193376 [details]
patch
This patch will prevent further NPEs while I figure out what caused the wrong line numbers to be reported from the test.
applied the patch + some Javadoc updates Looks like the test failed because the step request failed. Marking this bug as fixed. I will reopen if the test fails again. The testGetterFilters test failed in the I20110419-1004. The step request failed again, at least not from an NPE this time: !ENTRY org.eclipse.jdt.debug 4 125 2011-04-19 14:54:35.333 !MESSAGE Internal error logged from JDI Debug: !STACK 0 com.sun.jdi.InternalException: Got error code in reply:13 at org.eclipse.jdi.internal.MirrorImpl.defaultReplyErrorHandler(MirrorImpl.java:277) at org.eclipse.jdi.internal.request.EventRequestImpl.enable(EventRequestImpl.java:232) at org.eclipse.jdt.internal.debug.core.model.JDIThread$StepHandler.createStepRequest(JDIThread.java:2066) at org.eclipse.jdt.internal.debug.core.model.JDIThread$StepHandler.createSecondaryStepRequest(JDIThread.java:2336) at org.eclipse.jdt.internal.debug.core.model.JDIThread$StepHandler.createSecondaryStepRequest(JDIThread.java:2314) at org.eclipse.jdt.internal.debug.core.model.JDIThread$StepHandler.handleEvent(JDIThread.java:2209) at org.eclipse.jdt.internal.debug.core.EventDispatcher.dispatch(EventDispatcher.java:154) at org.eclipse.jdt.internal.debug.core.EventDispatcher.access$0(EventDispatcher.java:104) at org.eclipse.jdt.internal.debug.core.EventDispatcher$1.run(EventDispatcher.java:248) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54 For reference, error code 13 is: THREAD_NOT_SUSPENDED from the JDWP spec Re-closing as fixed. These tests have not failed for quite some time. |