found...object but expected myClass error using a Java Stack
===

Compiling error "Incompatible types - found java.lang.Object but expected E" is generated when I attempt to compile code in this form:

    public class E {
        private int x;       
        
        public E {
            x = 0;
        }
    }

    public class Class {
        private E o;
        private E b;
        private Stack stack = new Stack();
        
        public void foo() {
            stack.push(o);
        }
        
        public void bar() {
            **b = stack.pop();**
        }
    }