Review whether or not the IllegalArgumentException should be thrown rather than caught (with a default value returned) for parsed getters
Currently, when a parsed getter (i.e. getIntegerPrope
Blueprint information
- Status:
- Complete
- Approver:
- Gregory Moyer
- Priority:
- High
- Drafter:
- Gregory Moyer
- Direction:
- Approved
- Assignee:
- Gregory Moyer
- Definition:
- Approved
- Series goal:
- Accepted for trunk
- Implementation:
- Implemented
- Milestone target:
- 1.1-beta1
- Started by
- Gregory Moyer
- Completed by
- Gregory Moyer
Related branches
Related bugs
Sprints
Whiteboard
Implementation is deferred until the direction is finalized.
One way I am contemplating is providing two of each of the affected methods - one with throws the exception and one which returns the default value.
I decided to go with the above approach and change the current methods to throw the exception immediately while new *Fallback() methods will try the default before throwing the exception.
Implemented in http://