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

后端 未结 23 2650
遥遥无期
遥遥无期 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:29

    I 've experienced this problem on Eclipse Juno, the root cause was that although some spring jars were being included by transient maven dependencies they were included in incorrect versions.

    So you should check if using a modularized framework as spring that every module (or at least the most important: core, beans, context, aop, tx, etc.) are in the same version.

    To solve the problem I 've used maven dependnecy exclusions to avoid incorrect version of transient dependencies.

提交回复
热议问题