posted 18 years ago
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 showed gave a ClassNotFoundException at the
1. public class Manager{
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.protected List<KeyValue> cache;
9.int direction;
10.public Manager(List<KeyValue> cache,int direction){
11.this.cache = cache;
12.this.direction = direction;
}
}
13. public class Caller{
14. public void callerMethod{
15.List<KeyValue> mycache = new ArrayList<KeyValue>();
int Direction = 3;
Manager m = new Manager(mycache, 3);
}
}