| Summary: | setters for required config params always result in "double faults" | ||
|---|---|---|---|
| Product: | [Technology] RTSC | Reporter: | Dave Russo <d-russo> |
| Component: | Tools | Assignee: | 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 | ||
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). |
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"