[jboss-cvs] JBossAS SVN: r82214 - projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/resolvers/spi.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 10 20:18:54 EST 2008
Author: ALRubinger
Date: 2008-12-10 20:18:54 -0500 (Wed, 10 Dec 2008)
New Revision: 82214
Modified:
projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/resolvers/spi/EjbReferenceResolverFactory.java
Log:
[EJBTHREE-1616] Bug Fix in assertion
Modified: projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/resolvers/spi/EjbReferenceResolverFactory.java
===================================================================
--- projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/resolvers/spi/EjbReferenceResolverFactory.java 2008-12-11 00:49:28 UTC (rev 82213)
+++ projects/ejb3/trunk/common/src/main/java/org/jboss/ejb3/common/resolvers/spi/EjbReferenceResolverFactory.java 2008-12-11 01:18:54 UTC (rev 82214)
@@ -60,8 +60,8 @@
Class<?> implClass = Class.forName(implementationClassName);
// Ensure we've got a type match
- assert implClass.equals(EjbReferenceResolver.class) : "Specified implementation " + implementationClassName
- + " is not a valid " + EjbReferenceResolver.class.getName();
+ assert EjbReferenceResolver.class.isAssignableFrom(implClass) : "Specified implementation "
+ + implementationClassName + " is not a valid " + EjbReferenceResolver.class.getName();
// Make a new instance, cast and return it
return (EjbReferenceResolver) implClass.newInstance();
More information about the jboss-cvs-commits
mailing list