开发者

Does Eclipse do a binary-compatibility-check of jars as they are added to a project?

While I was singing the praises of Maven's dependency management, an Eclipse us开发者_高级运维er told me (an IntelliJ user) they don't need stuff like that because any time they add a jar to a project Eclipse will test it's binary compatibility against other jars in the project.

Is this true? Is this Eclipse itself or a plugin?

Is there similar functionality available in IntelliJ/Netbeans?

Thanks.


I'm not aware of such a thing in neither Eclipse nor in Maven (you'd need something like the maven-clirr-plugin to do something approaching).


I just did the following:

  1. Install Eclipse
  2. Create new Project
  3. Add a library that is missing dependencies.
  4. Create a class that does something like System.out.println(com.library.AClass.class);
  5. Note that Eclipse does not complain.
  6. Run it and get java.lang.NoClassDefFoundError when the class is loaded.

This tells me dependency checks don't (always) happen.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜