Return-Path: X-Original-To: apmail-openejb-commits-archive@www.apache.org Delivered-To: apmail-openejb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 692B34A40 for ; Thu, 19 May 2011 07:39:29 +0000 (UTC) Received: (qmail 21573 invoked by uid 500); 19 May 2011 07:39:29 -0000 Delivered-To: apmail-openejb-commits-archive@openejb.apache.org Received: (qmail 21467 invoked by uid 500); 19 May 2011 07:39:28 -0000 Mailing-List: contact commits-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openejb.apache.org Delivered-To: mailing list commits@openejb.apache.org Received: (qmail 21452 invoked by uid 99); 19 May 2011 07:39:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 07:39:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 07:39:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 58F25D08A9 for ; Thu, 19 May 2011 07:38:47 +0000 (UTC) Date: Thu, 19 May 2011 07:38:47 +0000 (UTC) From: "Shawn Jiang (JIRA)" To: commits@openejb.apache.org Message-ID: <937198012.25941.1305790727360.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (OPENEJB-1552) org.apache.openejb.core.interceptor.ReflectionInvocation can not access a timeout method with modifiers "private" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 org.apache.openejb.core.interceptor.ReflectionInvocation can not access a timeout method with modifiers "private" ----------------------------------------------------------------------------------------------------------------- Key: OPENEJB-1552 URL: https://issues.apache.org/jira/browse/OPENEJB-1552 Project: OpenEJB Issue Type: Bug Components: ejb31 Affects Versions: (trunk/openejb3) Reporter: Shawn Jiang Attachments: timerEJB.jar This is a new regression I found in openejb trunk. A private method of EJB is defined in ejb-jar.xml as timeout method. It's legal from ejb 31 spec.18.2.5.3 "A timeout callback method can have public, private, protected, or package level access. A timeout callback method must not be declared as final or static." In our code, we have logic to set the private method accessible. org.apache.openejb.assembler.classic.MethodScheduleBuilder.build(BeanContext, EnterpriseBeanInfo) { ...... //get the timeout method from the info in DD or annotation. timeoutMethodOfSchedule = MethodInfoUtil.toMethod(clazz, info.method); //set the method accessible so that we could call it even it's a private method. SetAccessible.on(timeoutMethodOfSchedule); ..... } It used to work well. And I can confirm these logic was executed when I debug into it. Can anyone shed some light on this ? At least, how could I tell if the private method was accessible after calling SetAccessible.on() to it ? -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira