[jdk11u-dev] RFR: 8357657: [11u][windows] cannot stat '/jdk.crypto.ec/*': No such file or directory [v2]

Sergey Bylokhov serb at openjdk.org
Thu Nov 13 02:20:34 UTC 2025


> 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.

Sergey Bylokhov has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'openjdk:master' into JDK-8357657
 - Merge branch 'openjdk:master' into JDK-8357657
 - 8357657: [11u][windows] cannot stat '/jdk.crypto.ec/*': No such file or directory

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

Changes:
  - all: https://git.openjdk.org/jdk11u-dev/pull/3035/files
  - new: https://git.openjdk.org/jdk11u-dev/pull/3035/files/bc43ddef..8d692ff9

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3035&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3035&range=00-01

  Stats: 8843 lines in 166 files changed: 4908 ins; 2589 del; 1346 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/3035.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3035/head:pull/3035

PR: https://git.openjdk.org/jdk11u-dev/pull/3035


More information about the jdk-updates-dev mailing list