Bookmark Topic Watch Topic
  • New Topic

inner class - ClassNotFoundException  RSS feed

Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
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; 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);
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!