How do I deal with a ClassNotLoadedException while debugging?

前端 未结 6 861
悲&欢浪女
悲&欢浪女 2020-11-28 16:22

So I\'m (remotely) debugging a java/jboss application in Eclipse, stepping through line by line. At one point, an array of GridSquare objects (GridSquare

6条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 17:14

    I have seen this happen in Eclipse when you have a subclass's class variables hiding a parent class's variables. Somehow that confuses Eclipse (and generally is a bad idea anyway :). For example:

    class A {
       private String a;
    }
    
    class B extends A {
       public String a;
    }
    

提交回复
热议问题