On Fri, 8 May 2026 08:09:43 GMT, Matthias Baesken <[email protected]> wrote:
> Some coding from Region.c seems to be unnecessary in the headless build, e.g. > RegionToYXBandedRectangles . > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). src/java.desktop/share/native/libawt/java2d/pipe/Region.c line 111: > 109: > 110: #ifndef HEADLESS > 111: JNIEXPORT jint JNICALL This is a very unique use of HEADLESS. it is used to exclude code that cannot be included in a headless build. This instead happens to be a case of "it isn't used in a headless build". Why is excluding this important ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/31088#discussion_r3210988392
