vlad
03/01/2018, 9:30 PMnfrankel
03/01/2018, 9:31 PMvlad
03/01/2018, 9:32 PMthrows
in its signatureShawn
03/01/2018, 9:32 PMIOException
is a checked exception in Java and there’s nothing stopping you from throwing it in a function in Kotlin and calling that function from Javadiesieben07
03/01/2018, 9:32 PM@Throws
annotation to make it so that Java sees the method as "throwing something".vlad
03/01/2018, 9:33 PMnfrankel
03/01/2018, 9:39 PMif java is calling kotlin code that throws an IOException, then it’s very surprising to the java code that a checked exception is thrown from a method withouti think the java runtime doesn’t give a damn the java compiler is the one which cares about thatin its signaturethrows
scottmeschke
03/01/2018, 10:29 PMscottmeschke
03/01/2018, 10:30 PMhallvard
03/01/2018, 10:33 PMi think the java runtime doesn’t give a damn the java compiler is the one which cares about that... and maybe the java developer. ..