Eclipse compilation error: The hierarchy of the type 'Class name' is inconsistent

后端 未结 23 2672
遥遥无期
遥遥无期 2020-12-04 15:53

I have downloaded some open source software written in Java and tried to compile it using Eclipse. I got the error: \"The hierarchy of the type \'Class name\' is inc

23条回答
  •  青春惊慌失措
    2020-12-04 16:43

    I had this error after doing some git merge from a branch where my classes extended a new interface. It was enough to Refresh (F5) the File-Tree in the Package Explorer frame of Eclipse.

    It seems that Eclipse did not update everything properly and so the classes were extending a non-existing-yet interface. After refresh, all errors disappeared.

提交回复
热议问题