tag:blogger.com,1999:blog-32637828.post8396829172854093738..comments2023-10-31T16:37:25.528+00:00Comments on fahd.blog: Throw a checked exception from a method without declaring itFahd Shariffhttp://www.blogger.com/profile/00919911016127601294noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-32637828.post-84185308999891596812011-02-13T10:50:21.655+00:002011-02-13T10:50:21.655+00:00Hi Fahd,
I've found out that I've got the...Hi Fahd,<br /><br />I've found out that I've got the compiler-time error because I've used the Eclipse's excetion environment instead of the "plain" JDK.<br /><br />When I updated my settings your example started to work fine.<br /><br />Thank you very much for your example.<br /><br />Regards,<br />Iurii Volchyn<br />iurii.volchyn@gmail.comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-32637828.post-87101200129703076132011-02-13T10:32:57.975+00:002011-02-13T10:32:57.975+00:00Hi Fahd,
What JDK version did you use for this ex...Hi Fahd,<br /><br />What JDK version did you use for this example?<br />I'm now using 1.6.0_21<br /><br />The method getUnsafe() has explicity declared return type "Unsafe". And the compiler prohibits me to refer to (or import) this type<br /><br />Iurii Volchyn<br />iurii.volchyn@gmail.comAnonymousnoreply@blogger.com