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:
mypackagename.IdleJob@1315153
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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...