[kaffe] Class creation help

James Simmons jsimmons at infradead.org
Thu Nov 6 16:02: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?
 





More information about the kaffe mailing list