Consider this: public interface AddressBeanBusinessInterface <E extends Exception> | { | ... | public void delete( final Long key ) throws E, UnknownIdDeviation; |
| public interface AddressBeanRemote extends EJBObject, AddressBeanBusinessInterface<RemoteException> | { | // empty - see the business interface for the remote EJB methods | ... and public interface AnotherInterface extends AddressBeanBusinessInterface<NullPointerException> | { | // empty - see the business interface for the remote EJB methods | So there 2 interfaces which extend the AddressBeanBusinessInterface. One expects to throw a NullPointerException and the other a RemoteException. So what should the compiler "replace" the E in AddressBeanBusinessInterface? It doesn't. All it does is marks the method to throw an Exception (as marked by E extends Exception): public interface AddressBeanBusinessInterface <E extends Exception> | { | ... | public void delete( final Long key ) throws Exception, UnknownIdDeviation; | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241797#4241797 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241797 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user