What confused me was you saying that it works for constants but not for variables. Currently, a typecast is necessary in this situation even for JRE 1.4, and for every Style object returned by methods, variables or constants in Style class. I do not say this is good or bad.
-- venkat On Fri, 4 Feb 2005 18:51:52 +0100, Michael Schuerig <[EMAIL PROTECTED]> wrote: > On Friday 04 February 2005 18:18, Venkat Reddy wrote: > > Is it not because you are passing an instance of super class while it > > expects an instance of a derived class? > > Yes, it is exactly because of that. I can't change the class of the > various constants such as Style.DOCUMENT and USE.LITERAL. What do you > suggest? > > Michael > > -- > Michael Schuerig Thinking is trying to make up > mailto:[EMAIL PROTECTED] for a gap in one's education. > http://www.schuerig.de/michael/ --Gilbert Ryle >