Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323776 - setters for required config params always result in "double faults"
Summary: setters for required config params always result in "double faults"
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Jon Rowlands CLA
QA Contact:
URL:
Whiteboard: target:3.21
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-26 21:02 EDT by Dave Russo CLA
Modified: 2014-02-26 00:12 EST (History)
1 user (show)

See Also:


Attachments

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