简体   繁体   English

比较两个不同版本的Eclipse的Java类文件

[英]Comparing two java class files of Different Versions of Eclipse

I am trying to analyze the modification in Classes of two different version of Eclipse... For eg In Eclipse 2.0 and Eclipse 2.1 there are 4928 same classes with difference in SLOC per class.... 我试图分析两种不同版本的Eclipse的类中的修改...例如,在Eclipse 2.0和Eclipse 2.1中,有4928个相同的类,每个类的SLOC有所不同。...

I have tried some opensource software like CLOC for finding change in classes in terms of lines of codes but I am bit more concerned in changes which are affecting functionality... 我已经尝试过像CLOC这样的开源软件来查找代码行中类的更改,但是我更担心影响功能的更改...

There are at least two possibilities: 至少有两种可能性:

  1. Compare the source code and unit tests of these classes (if open-sourced). 比较这些类的源代码和单元测试(如果是开源的)。

  2. Use a decompiler (ie http://sourceforge.net/projects/jadclipse/ ) and compare the decompiled code. 使用反编译器(即http://sourceforge.net/projects/jadclipse/ )并比较反编译的代码。

Either way it won't be easy to evaluate how exactly the functionality of the classes changed. 无论哪种方式,都很难评估类的功能发生了多大的变化。 A change might be simple refactoring, which changes the code's structure but not the functionality itself. 更改可能是简单的重构,它可以更改代码的结构,但不能更改功能本身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM