Hi all,
I have the following code segment: It has a "Manager" class with an inner class called "KeyValue". Another class named "Caller" tries to instantiate an object of type Manager. The Eclipse debugger gave a ClassNotFoundException at line number 19. So looks like there is a
runtime problem in finding and loading the class dynamically as it is a generic type. Please, please help me soon.
1. public class Manager{
//*** inner class ***
2. public class KeyValue {
3. protected Object element;
4. protected Object value;
5. public KeyValue(Object element, Object value) {
6. this.element = element;
7. this.value = value;
8. }
9. }
//***** inner class end *****
10. protected List<KeyValue> cache;
11. int direction;
12. public Manager(List<KeyValue> cache,int direction){
13. this.cache = cache;
14. this.direction = direction;
15. }
16. }
----------------------------------
17. public class Caller{
18. public void callerMethod{
19. List<KeyValue> mycache = new ArrayList<KeyValue>();
20. int Direction = 3;
21. Manager m = new Manager(mycache, 3);
22. }
23.}