Java name clash, have the same erasure, neither hides the other

后端 未结 3 1290
无人共我
无人共我 2020-12-10 11:35

I am getting this name clash error and i don\'t know how should i solve the problem. I have two classes and i am using overloaded method \"createSensors\". To simplify here

3条回答
  •  旧巷少年郎
    2020-12-10 12:08

    Check the project setting and compiler version of the project. Right click on project --> Properties --> Java Compiler. Make sure compliance setting are up to date. I had this problem when compliance settings were set to 1.4 instead 1.6

提交回复
热议问题