Does JMOD Architecture Affect Javac Generated Class Files

91 Views Asked by At

I am compiling a Java 11 application, then linking for various architectures by calling the jlink command. Does the architecture of the jmod files used for the javac command affect the output in any way? Is it well-defined behavior to compile (javac) using the Windows jmod files, then link (jlink) using the Linux jmod files?

My intuition is that javac compiles against the interfaces defined within the jmod files, which should match regardless of underlying implementation, but I couldn't find any documentation stating that. For my specific case, I am linking against the OpenJFX library.

0

There are 0 best solutions below