[kaffe] Class creation help
jsimmons at infradead.org
Wed Nov 12 09:49:02 PST 2003
> > I have 3 classes Example1, Example2, and Example3. The inheritance is
> > Example1 --> Example2 --> Example3
> > Now I try a
> > Class protoClass = Class.forName("Example3");
> > Example1 source = (Example1)protoClass.newInstance();
> > Later I attempt to use Example1 as Example3. Now when I attempt to use
> > source only the constructor for Example2 and Example 1 are called.
> > Why is this?
> Uh ... do you have a test case? ;)
I found the mistake. It was my fault. I was generating a string to pass to
Class.forName which was broken. Now it works.
More information about the kaffe