Bugs item #968759, was opened at 2004-06-08 11:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=968759&group_id=22866
Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: J-F Daune (daune_jf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Schedulable interface cannot be inherited
Initial Comment:
I have developed an abstract class implementing
Schedulable, and when I try to deploy subclasses of this
class, I get an error reporting that they do not
implement Schedulable.
The cause is Scheduler.setSchedulableClass. It checks
that the given class name implements Schedulable using
introspection. But it only introspects the class itself, not
the class' superclasses (in other words, it does not 'visit'
ancestors). In my case, it is the abstract base class
that implements Schedulable.
Here is fix:
line 551 (setSchedulableClass):
boolean lFound = false;
Class lClass = mSchedulableClass;
do
{
Class[] lInterfaces = lClass.getInterfaces();
for (int i = 0; i < lInterfaces.length; i++)
{
if (lInterfaces[i] == Schedulable.class)
{
lFound = true;
break;
}
}
lClass = lClass.getSuperclass();
}
while(lClass != null && !lFound);
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=968759&group_id=22866
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development