Am 09.11.24 um 11:37 schrieb Rémy Maucherat:
On Sat, Nov 9, 2024 at 10:52 AM Rainer Jung <rainer.j...@kippdata.de> wrote:
2) Reproducibility for TC 9
:::::::::::::::::::::::::::

If I run "ant release" with Java 17 as suggested in
build.properties.release, I get the error, that for release including
ffm you need 22. But if I run it with Java 22 then it seems I do not get
a reproducible build?

You should use Java 17. However, note in the release file the "Javac
with FFM version: javac 23.0.1".
The "java-ffm.home" property is needed to be set to the path for that
corresponding JVM.

Rémy

That works now. Except for one annoyance which might be an unexpected bug in Java 17 Javadoc:

With Java 17 I get a delta between the generated fulldocs tarball and the uploaded one in file api/index-all.html (and I think corresponding in api/member-search-index.js.

The differing lines are always about methods inherited from org.apache.tomcat.dbcp.dbcp2.datasources.InstanceKeyDataSourceFactory to PerUserPoolDataSourceFactory and to SharedPoolDataSourceFactory in the same package. Those methods are shown in the index as belonging to both inheriting classes when generating javadoc with Java 22, but only one to one of the two classes with Java 17.

The non-reproducibility comes in, because the uploaded fulldocs tarball shows the methods to belong to (only) PerUserPoolDataSourceFactory and the locally generated one shows them for (only) SharedPoolDataSourceFactory.

No idea why. Both generated with the exact same java 17 version and the Adoptium build (maybe for different architectures). Could be file system differences or whatever determines which of the two classes is chosen.

Best regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to