On Fri, 30 Oct 2020 21:47:51 GMT, Valerie Peng <[email protected]> wrote:

> > Just curious, can the Java files be generated during the build process?
> 
> Hmm, maybe, by the java files, do you just mean PKCS11Constants class or 
> more? I am not familiar with how to generate Java files during the build 
> process, can you share some pointers? I can look into them for possible 
> future enhancement.

Well, any file that can was a rewrite of its C sibling.

SunEC's finite field arithmetic code is generated in the build process. The 
generation tool is 
https://github.com/openjdk/jdk/blob/fd28aad72d3a13fbc2eb13293d40564e471414f3/make/jdk/src/classes/build/tools/intpoly/FieldGen.java#L35
 and it's called by 
https://github.com/openjdk/jdk/blob/1cb7df63e7015da568b67c55a7a4468500ea564d/make/modules/java.base/Gensrc.gmk#L113
 and the files are generated in the `$BUILD_OUTPUT/support/gensrc` directory. 
These files will be automatically merged with the human-written sources files 
in `src` of the same package at build time.

-------------

PR: https://git.openjdk.java.net/jdk/pull/917

Reply via email to