Duplicate classes
While developing the dependency checker, I discovered that a number of classes are contained in more than one plugin. Sometimes these classes are identical (have the same MD5 sum) and sometimes not. While the first case leads to an unneccessary enlargement of the boot image, the second image might eventually lead to ClassCastExceptions at runtime, if both versions of the class are loaded.
Identical duplicate classes
---------------------------
1) Both the org.classpath.core_0.2.1-dev and the org.classpath.ext_0.2.1-dev plugins contain the following classes:
- gnu.java.locale.LocaleHelper
- gnu.java.locale.LocaleInformation
- gnu.java.locale.LocaleInformation_en
2) Both the org.jnode.fs.ext2_0.2.1-dev and the org.jnode.test.fs_0.2.1-dev plugins contain all classes from the org.jnode.fs.ext2 package.
3) Both the org.jnode.fs.fat_0.2.1-dev and the org.jnode.test.fs_0.2.1-dev plugins contain all classes from the org.jnode.fs.fat package.
4) Both the org.jnode.fs.iso9660_0.2.1-dev and the org.jnode.test.fs_0.2.1-dev plugins contain all classes from the org.jnode.fs.iso9660 package.
5) Both the org.jnode.fs.ntfs_0.2.1-dev and the org.jnode.test.fs_0.2.1-dev plugins contain all classes from the org.jnode.fs.ntfs package.
Differing duplicate classes
---------------------------
In the following cases classes are contained in two plugins that have the same name, but different MD5 sums.
1) Both the crypto-security_2.0.1 and the org.classpath.ext_0.2.1-dev plugins contain all classes from the javax.security.auth.callback and the javax.security.sasl packages.
Sebastian
- Login to post comments
Thanks
Thanks for this comment.
I'll fix it.
It is just that there are some duplicate entries in a plugin descriptor.
The javax.security maybe something else. I'll check.
Ewout
about Identical duplicate classes
For the points 2 to 5 of "Identical duplicate classes", I think it is a bug in the build process and maybe also for the point 1.
Fabien