exceptions: Java exception handling companion code (suppression, chaining, cost)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import java.io.IOException;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
// Deliberately does NOT compile. scripts/run-all.sh captures the real javac message.
|
||||
public class LambdaChecked {
|
||||
static String read(String n) throws IOException { return n; }
|
||||
public static void main(String[] args) {
|
||||
Stream.of("a", "b").map(n -> read(n)).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user