If you check out your source code in Cygwin, somewhere under /home/... (as opposed to /cygpath/...), IncludeCustomExtension does not work.
The problem is that TOPDIR gets a different lexical value from the spec.gmk file when setup in Makefile, even if this was the same directory. Since THIS_INCLUDE is calculated as a relative path by string substitution of $(TOPDIR), the path failed to relativize correctly. ------------- Commit messages: - 8351029: IncludeCustomExtension does not work on cygwin with source code below /home Changes: https://git.openjdk.org/jdk/pull/25100/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25100&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8351029 Stats: 7 lines in 1 file changed: 4 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/25100.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25100/head:pull/25100 PR: https://git.openjdk.org/jdk/pull/25100