Exceptions and proxies and coroutines, oh my!

1 · Jake Wharton · July 31, 2019, 1:16 p.m.
Checked exceptions are a concept that exist only in the Java compiler and are enforced only in source code. In Java bytecode and at runtime in the virtual machine you’re free to throw checked exceptions from anywhere regardless of whether they’re declared. At least, anywhere except from a instance created by a Java Proxy. A Proxy creates instances of interfaces at runtime where a single callback intercepts every method call. Libraries like Retrofit use proxies to create HTTP calls based on the a...