Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8320082

Generated byte code varies by operating system

XMLWordPrintable

    • x86_64
    • linux, windows

      Compiling the same java source code using Java 11 with release="7" generates different byte code for Windows and Linux. This breaks the cross-platform repeatable builds for Apache Tomcat.

      A sample project that demonstrates the problem is available at https://github.com/markt-asf/byte-code-differences

      The sample project is derived from the Apache Tomcat source code where the issue was first observed.

      The problem is not observed with Java 17 and release="7".

      The problem is not observed with Java 11 and release="8".

      The Tomcat project may be able to work-around this issue by building releases with Java 17.

            rreddy Ravi Reddy
            markt Mark Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: