[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Internal exception propagation strategy

scott.stark@jboss.org do-not-reply at jboss.com
Thu Jul 27 14:07:38 EDT 2006


I don't agree with a black/white assesment of checked/unchecked exceptions. The problem is that this distinction cannot be made by the exception emitter. Its a function of the caller state machine. If the state has no transitions for any exception, every exception is unchecked. If the state has fine grained events based on the exception type, every exception is checked.

You should start a java7 campaign to make all exceptions unchecked by default with annotations that map to on exception handlers along with a Thread active exception state map that indicates which exception types are of interest to the caller at any given point in time.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961382#3961382

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961382



More information about the jboss-dev-forums mailing list