throw new UnsupportedOperationException("Not supported yet."); As soon as above statement executes, the control never returns to this method again, that is why you are getting statement unreachable execption. [ July 18, 2008: Message edited by: Piyush Mangal ]
I had the same problem and I noticed that deleting the "throw UnsupportedException" instruction solves the problem. My question is why does the IDE (I am using NetBeans 6.01) keeps automatically inserting this throw instruction everytime I override a method from an interface? What's the use of this exception and what should I look out for when I erase the throw declaration? I could not find any obvious info about this on Google or the Java API, so please give me some pointers if you know anything about this subject. Thanks, all the best!