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

Bug 323776

Summary: setters for required config params always result in "double faults"
Product: [Technology] RTSC Reporter: Dave Russo <d-russo>
Component: ToolsAssignee: Jon Rowlands <rowlands>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: dfriedland
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: target:3.21

Description Dave Russo CLA 2010-08-26 21:02:43 EDT
The ti.mcu.msp430.rf.Radio module has a required config parameter that is the name of the SimpliciTI stack.  There is no default value which can work for everyone.

A setter that validates that the specified directory exists triggers a "double fault":
    1. the setter throws an excpetion when the value is bogus
    2. the runtime calls the setter to restore the initial value (which is 
       also bogus)
    3. the setter throws another exception (because it does not know the 
       difference between a "real" set and a "restoration after a problem set"
Comment 1 Dave Russo CLA 2014-02-26 00:11:33 EST
fixed in r1202 (xdctools 3.21.01.57) setters are now passed a fourth parameter, the exception that caused the rollback or null, that allows the setter to detect if a rollback is in progress and what caused it.

setters are called with fieldName, newValue, oldValue, and wrappedExceptionObj (or null).