Java error: Found interface … but class was expected

后端 未结 5 2062
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-05 00:55

I am getting a strange runtime error from my code:

\"Found interface [SomeInterface] but class was expected\"

How can this happen? How can an i

5条回答
  •  独厮守ぢ
    2021-02-05 01:46

    Most likely the code was compiled against a class in a library, which was then changed to an interface in the version you run against.

提交回复
热议问题