I've noticed some code in xwork that is probably to deal with OGNL deficiencies in terms of proper exception handling. OGNL doesn't contract any parsing exceptions and it seems they are added by means of ParseException extending XWorkException that in turn extends RuntimeException.
I don't think it's a good idea to create XWorkException as RuntimeException sublass, cause it may be used as common root for all XWork related exception. And choosing RuntimeException for root is bad, cause it doesn't force contracting exceptions. I think that better solution would be to make XWorkException and ParseException non RuntimeException, and to create internal legacy mechanisms (internal exception types) based on RuntimeExceptions to catch conversion problems that would be in turn properly wrapped into ParseException. Assuming OGNL is finally refactored with proper handling of conversion issues this solution would be easy to reintegrate - then one would just drop legacy mechanisms in favour of regular exception handling. The code "above" OGNL would be run with no changes, however this code would already have strong contracts for exceptional conversion situations. Of course anyone is free to disagree, but I think that RuntimeException (i.e. hidden exceptions are bad, as they are hard to debug sometimes). -- Mike -- Mike ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork