Translating to Java

Click here to start

Table of contents

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)


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


The end

Author: Alan Griffiths



Download presentation