Throws annotation


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…



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


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.