Throws annotation


#1

It is not exactly clear whether the 'throws' annotation is supported or not. The documentation states [1]: Option four is to make Kotlin put a throws list to the foo()'s signature with the throws annotation

However, the corresponding example does not seem to work (the throws annotation is not known). There is an open issue in the Kotlin bugtracker [2] for the throws annotation. So, I am wondering whether it is supposed to be available or not…

[1] http://confluence.jetbrains.com/display/Kotlin/Java+interoperability#Javainteroperability-Checkedexceptions
[2] http://youtrack.jetbrains.com/issue/KT-68


#2

Supporting "throws" annotation is planned, but it's not a top priority task. Feel free to vote for the issue in tracker.   


#3

Ok, thanks for the information! I'll vote on the issue, since I do think it is important if you are writing libraries that are used from Java.