[jdk11u-dev] Integrated: 8357657: [11u][windows] cannot stat '/jdk.crypto.ec/*': No such file or directory
Sergey Bylokhov
serb at openjdk.org
Thu Nov 13 07:01:29 UTC 2025
On Fri, 23 May 2025 16:12:57 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> This patch provides a workaround for a bug in the latest version of Cygwin. Only JDK 11 is affected; newer versions are not impacted because the makefiles were updated by [JDK-8220383](https://bugs.openjdk.org/browse/JDK-8220383).
>
> The issue is that:
> `ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )`
> returns results even when `IMPORT_MODULES_CLASSES` is empty/unset. This causes the build to incorrectly search for a module like `/jdk.crypto.ec/`, which fails because the directory does not exist.
>
> The fix is to first check whether `IMPORT_MODULES_CLASSES` is set. If it is, we define `IMPORT_MODULE_DIR` as `$(IMPORT_MODULES_CLASSES)/$(MODULE)` and use this property consistently throughout the build. This matches the approach introduced in [JDK-8220383](https://cr.openjdk.org/~erikj/8220383/webrev.01/make/CompileJavaModules.gmk.sdiff.html) for this codepath.
This pull request has now been integrated.
Changeset: 912a12be
Author: Sergey Bylokhov <serb at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/912a12be6407be18a27df70d9954cfdf3e5f009c
Stats: 10 lines in 1 file changed: 5 ins; 0 del; 5 mod
8357657: [11u][windows] cannot stat '/jdk.crypto.ec/*': No such file or directory
Reviewed-by: shade
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/3035
More information about the jdk-updates-dev
mailing list