RE: [Avalon4:PROPOSAL] Context Consensus
"Noel J. Bergman" <[email protected]>
| Newsgroups | gmane.comp.jakarta.avalon.apps.devel |
|---|---|
| Message-ID | <NBBBJGEAGJAKLIDBKJOPKEALPBAA.noel__39017.0072475032$1039634422@devtech.com> |
> I prefer for the component to [do] the cast and explode if it fails. > The responsibility is on the container to catch and log the exception. The contract throws ContextException. There is nothing in the API contract that says that a container must intelligently handle ClassCastException, or what it might mean semantically. --- Noel