Bugs item #607805, was opened at 2002-09-11 16:06
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=607805&group_id=22866

Category: JBossServer
Group: CVS HEAD
Status: Open
Resolution: None
Priority: 5
Submitted By: Oskari Kettunen (aok)
Assigned to: Nobody/Anonymous (nobody)
Summary: invalid ejbspec 12.2.11 warning

Initial Comment:
Method verifyEntityLocalHome(...) in 
org.jboss.verifier.strategy.EJBVerifier20 uses method 
throwsRemoteException(...) in 
org.jboss.verifier.strategy.AbstractVerifier to enforce 
EJB Spec 12.2.11. This causes misfired 
SpecViolationEvents.

Because of Bug #434739, the assignability is in the 
direction e.isAssignableFrom
(java.rmi.RemoteException.class) however, for this 
purpose it should be the original 
java.rmi.RemoteException.class.isAssignableFrom(e).

For, example, throwing an IOException from an entity's 
local home is not prohibited by the spec:
--
The throws clause of any method on the entity bean�s 
local home interface must not include the 
java.rmi.RemoteException.
--
but java.io.IOException.class.isAssignableFrom
(java.rmi.RemoteException.class) returns true, an the 
bean gets rejected...

Apparently the verifiation should use two separate 
throwsRemoteException(...) methods, one or each 
direction...

Oskari Kettunen, Finland

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=607805&group_id=22866


-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to