At 12:44 AM 6/10/00 , Michael Neumann wrote:
>Another question:
>How can I create an instance (or access static's) of an inner class?
>
>Example:
>
>public class A {
> static class B {
> }
>}
>
>Here I want to get an instance of A.B .
Not implemented yet, sorry. On VisualCafe 3.0c using Java 1.1.7a both Class.getClasses() and Class.getDeclaredClasses() returns an empty list on your example, even when I declare B to be "static public". Is this a Java bug? In order to implement this feature, I need some way of accessing an Inner Class object from dynamic knowledge of its name. These two methods of Class are the only ways I know of doing so, and I don't know how to make them work. Anyone?
Cheers,
--MarkM