import java.io.BufferedReader;
import java.io.IOException;


public class UseInitCause {
	
	public String firstLine(BufferedReader r) {
		try {
			return r.readLine();
		} catch (IOException e) {
			throw (RuntimeException) new RuntimeException("IO Error").initCause(e);
		}
	}

}

Check that type analysis understands that Throwable.initCause(Throwable) always returns the this object.
Check that type analysis understands that Throwable.initCause(Throwable) always returns the this object.


git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@5360 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
