User: jwalters Date: 02/04/16 18:46:43 Modified: src/main/org/jboss/verifier/strategy Tag: Branch_3_0 EJBVerifier20.java Log: Fixed bug #543693 where verifier didn't look into super classes for various methods. Revision Changes Path No revision No revision 1.17.2.1 +5 -5 jboss/src/main/org/jboss/verifier/strategy/EJBVerifier20.java Index: EJBVerifier20.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/verifier/strategy/EJBVerifier20.java,v retrieving revision 1.17 retrieving revision 1.17.2.1 diff -u -r1.17 -r1.17.2.1 --- EJBVerifier20.java 14 Apr 2002 12:00:07 -0000 1.17 +++ EJBVerifier20.java 17 Apr 2002 01:46:43 -0000 1.17.2.1 @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * This package and its source code is available at www.jboss.org - * $Id: EJBVerifier20.java,v 1.17 2002/04/14 12:00:07 jwalters Exp $ + * $Id: EJBVerifier20.java,v 1.17.2.1 2002/04/17 01:46:43 jwalters Exp $ */ @@ -49,7 +49,7 @@ * * @author Juha Lindfors ([EMAIL PROTECTED]) * @author Jay Walters ([EMAIL PROTECTED]) - * @version $Revision: 1.17 $ + * @version $Revision: 1.17.2.1 $ * @since JDK 1.3 */ public class EJBVerifier20 extends AbstractVerifier { @@ -1965,7 +1965,7 @@ fieldName.substring(1); Class fieldType = null; try { - Method m = bean.getDeclaredMethod(getName, new Class[0]); + Method m = bean.getMethod(getName, new Class[0]); fieldType = m.getReturnType(); } catch (NoSuchMethodException nsme) { fireSpecViolationEvent(entity, new Section("10.6.2.g")); @@ -1976,11 +1976,11 @@ Class[] args = new Class[1]; args[0] = fieldType; try { - Method m = bean.getDeclaredMethod(setName, args); + Method m = bean.getMethod(setName, args); } catch (NoSuchMethodException nsme) { args[0] = classloader.loadClass("java.util.Collection"); try { - Method m = bean.getDeclaredMethod(setName, args); + Method m = bean.getMethod(setName, args); } catch (NoSuchMethodException nsme2) { fireSpecViolationEvent(entity, new Section("10.6.2.h")); status = false;
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development