Exception Safety in Java
Translating to Java
The tour
The code between
Landmark: basic
basic-guarantee - can you do it
Landmark: strong
Changes made by g()...x()
Landmarks: all
Base camp
Java exceptions - the types
Java exceptions - the effect
Garbage collection
GC and resources
Using try, finally (and catch)
Execute-Around-Method
Strong exception-safety
Camp 2: the Whole class
A naive implementation
Naïve assumptions
First steps
The general case
We need nothrow guarantees
the basic guarantee
Back to base
Implementing the basic guarantee
Conclusion
The end
Author: Alan Griffiths
E-mail: agriffiths@microlise.co.uk
Home: http://www.octopull.co.uk/
Download presentation