The Artima Developer Community
Sponsored Link

downcast failed

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

downcast failed

Posted by Soave Luigi on 22 Mar 1999, 2:49 AM

I atempted to downcast an Object returned by Field.get in an Object
of type correct. Object.getClass return the expected value, but
cast fail. I don't understand this. Moreover, the same class
don't work in parameter argument of Method.invoke.
This class has only a field of class java.util.Hashtable. Everything
work with this object...




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us