Gjdoc generates different html on i386 and on x86_64 when the -use flag is specified. This posses a problem for distributions that require packages to be multilib compatible (i.e. everything placed in /usr/share/ must be same across builds). Currently FC6 and RHEL-5 both have this requirement. I tracked this problem down to gjdoc's use of HashMap.keySet().iterator() in HtmlDoclet (line 1842). Gjdoc's usage of these methods produces different ordering in the html package listings on i386 and on x86_64 with both GCJ (FC6 gcc-java-4.1.1-30) and Sun's VM (jdk1.5.0_06). Since both of these implementations produce the same results, I made a patch to gjdoc to correct this problem. Thanks.
Created attachment 12551 [details] patch to gjdoc HEAD to make the package listing order consistent across builds
Created attachment 12559 [details] new version of patch with changelog I test this by generating javadocs for Eclipse with i386 and x86_64. It solves the original but I found another one. I'll file a new bug for the other issues I find when I have a chance to track them down. Thanks.