Build the jdk with new or modified sources

Lorris lorris.creantor at gmail.com
Mon Feb 26 13:40:13 UTC 2024


Hello,

I’m trying to build the JDK (version 23, my fork is up to date as of 2024/02/26) while adding new source files and also adding some fields or methods in existing files (in java.base and java.compiler modules). My problem is that when I try to build the image, most of the time (it seems to depend on the date of the last edited file) the new files and members I have added aren’t visible to the compiler which results in an error. Until now I have been using a workaround by building two times, firstly, only with the new code declarations and, secondly, with the references to this code. However, I’m now seeing the limits of this method.

Regards,
Lorris Creantor



More information about the build-dev mailing list