luehe       2003/01/14 13:40:33

  Modified:    el/src/java/org/apache/commons/el BeanInfoManager.java
  Log:
  Fix for bug 8694 (provided by [EMAIL PROTECTED])
  
  Revision  Changes    Path
  1.2       +11 -2     
jakarta-commons-sandbox/el/src/java/org/apache/commons/el/BeanInfoManager.java
  
  Index: BeanInfoManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/el/src/java/org/apache/commons/el/BeanInfoManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BeanInfoManager.java      8 Jan 2003 23:46:14 -0000       1.1
  +++ BeanInfoManager.java      14 Jan 2003 21:40:32 -0000      1.2
  @@ -374,8 +374,17 @@
       // See if this is a public class declaring the method
       if (Modifier.isPublic (pClass.getModifiers ())) {
         try {
  -     Method m = pClass.getDeclaredMethod (pMethod.getName (),
  +        Method m;
  +        try {
  +       m = pClass.getDeclaredMethod (pMethod.getName (),
                                             pMethod.getParameterTypes ());
  +        } catch (java.security.AccessControlException ex) {
  +       // kludge to accommodate J2EE RI's default settings
  +       // TODO: see if we can simply replace
  +          //       getDeclaredMethod() with getMethod() ...?
  +          m = pClass.getMethod(pMethod.getName (),
  +                                             pMethod.getParameterTypes ());
  +        }
        if (Modifier.isPublic (m.getModifiers ())) {
          return m;
        }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to