[jboss-user] [EJB 3.0] - Re: Proxy-Class

tschlechter do-not-reply at jboss.com
Tue Feb 26 02:34:44 EST 2008


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 at 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#4132046

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132046



More information about the jboss-user mailing list