I just tried to use

IdleJob.class.isAssignableFrom(myJob.getClass())

instead of 

myJob instanceof IdleJob

unfortunately, both evaluate to false. 

In fact, myJob _is_ an IdleJob that is a direct SubClass of Job. (BTW 
instanceof Job evaluates to true).

Interestingly, myJob.toString() returns something like:
[EMAIL PROTECTED]
and
myJob.getClass().toString() returns something like:
mypackagename.Job_$$_javassist_166

Where does the correct classname in the toString() experiment come from and why 
still the instance-test does not work?
I am more and more convinced that this is a bug.

Greetings, 
 Tun

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132046#4132046

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132046
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to