Use the following syntax when loading static inner classes. The key is to use $ (dollar) sign instead of . (dot) to separate outer and inner class names in your fully-qualified class name.
Class innerClass = Class.forName("com.foo.OuterClass$InnerClass");
No comments:
Post a Comment