Hi Ed,
as I mentioned before the class cast exception is thrown in the last line of this method.
It is thrown in the explicit casting statement - the expression being returned.
return (DocumentFactory) singleton.instance();
And here comes the funny part:
If I inspect singleton.instance() in the debugger, I see and can access a valid instance
of org.dom4j.DocumentFactory.
If I inspect (DocumentFactory) singleton.instance() the class cast exception is thrown -
even in the debugger.
I simply do not understand this behavior ...
Cheers,
Ingo
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026243#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...