This patch removes all the annoying compile warnings about java.security.Identity being deprecated since EJB 1.1 but the patch is so simple that it probably breaks something otherwise someone would have done this a long time ago... ... or not? Is Rabbit-Hole supposed to support EJB 1.0? Can someone shade some light on this? Thanks,
-- Guillaume diff -urN jboss-all/j2ee/src/main/javax/ejb/EJBContext.java jboss-all-new/j2ee/src/main/javax/ejb/EJBContext.java --- jboss-all/j2ee/src/main/javax/ejb/EJBContext.java Tue Jun 12 16:47:48 2001 +++ jboss-all-new/j2ee/src/main/javax/ejb/EJBContext.java Wed Dec 5 00:40:43 2001 @@ -28,7 +28,7 @@ * * @return The Identity object that identifies the caller. */ - public Identity getCallerIdentity(); + //public Identity getCallerIdentity(); /** * Obtains the java.security.Principal of the caller. @@ -63,7 +63,7 @@ * * @return The environment properties for the enterprise bean. */ - public Properties getEnvironment(); + //public Properties getEnvironment(); /** * Test if the transaction has been marked for rollback only. An enterprise bean instance can use @@ -109,7 +109,7 @@ * @param role - The java.security.Identity of the role to be tested. * @return True if the caller has the specified role. */ - public boolean isCallerInRole(Identity role); + //public boolean isCallerInRole(Identity role); /** * Mark the current transaction for rollback. The transaction will become permanently marked for rollback. diff -urN jboss-all/server/src/main/org/jboss/ejb/EnterpriseContext.java jboss-all-new/server/src/main/org/jboss/ejb/EnterpriseContext.java --- jboss-all/server/src/main/org/jboss/ejb/EnterpriseContext.java Sun Nov 25 22:12:24 2001 +++ jboss-all-new/server/src/main/org/jboss/ejb/EnterpriseContext.java Wed Dec 5 00:39:03 2001 @@ -7,7 +7,7 @@ package org.jboss.ejb; import java.rmi.RemoteException; -import java.security.Identity; +//import java.security.Identity; import java.security.Principal; import java.util.Properties; import java.util.HashSet; @@ -211,10 +211,10 @@ /** * @deprecated */ - public Identity getCallerIdentity() - - throw new EJBException("Deprecated"); - } + //public Identity getCallerIdentity() + + // throw new EJBException("Deprecated"); + //} /** Get the Principal for the current caller. This method cannot return null according to the ejb-spec. @@ -301,10 +301,10 @@ /** * @deprecated */ - public Properties getEnvironment() - - throw new EJBException("Deprecated"); - } + //public Properties getEnvironment() + + // throw new EJBException("Deprecated"); + //} public boolean getRollbackOnly() @@ -337,10 +337,10 @@ /** * @deprecated */ - public boolean isCallerInRole(Identity id) - - throw new EJBException("Deprecated"); - } + //public boolean isCallerInRole(Identity id) + + // throw new EJBException("Deprecated"); + //} // TODO - how to handle this best? public boolean isCallerInRole(String id) _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development