[jdk8u-dev] Integrated: 8371352: [8u] Fix VS2010 build issue in check_code.c
Zdenek Zambersky
zzambers at openjdk.org
Tue Nov 11 11:38:35 UTC 2025
On Wed, 5 Nov 2025 15:36:18 GMT, Zdenek Zambersky <zzambers at openjdk.org> wrote:
> JDK 8 code fails to build using VS2010 with errors:
>
> ...
> check_code.c
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1167) : error C2143: syntax error : missing ';' before 'type'
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1168) : error C2065: 'target' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1183) : error C2143: syntax error : missing ';' before 'type'
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1184) : error C2065: 'target' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1222) : error C2143: syntax error : missing ';' before 'type'
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1223) : error C2065: 'jump' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1225) : error C2143: syntax error : missing ';' before 'type'
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1226) : error C2065: 'target' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1228) : error C2065: 'jump' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1229) : error C2065: 'jump' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1231) : error C2065: 'target' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1231) : error C2065: 'jump' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1232) : error C2065: 'target' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1769) : error C2143: syntax error : missing ';' before 'type'
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1770) : error C2065: 'target' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1770) : error C2065: 'target' : undeclared identifier
> d:/a/jdk8u-dev/jdk8u-dev/jdk/jdk/src/share/native/common/check_code.c(1770) : error C2065: 'target' : undeclared identifier
>
>
> Issue is JDK 8 only, because newer JDKs require higher version of visual studio.
>
> **Testing:**
> - GHA: OK
> - security infra problems are unrelated
This pull request has now been integrated.
Changeset: 6526a275
Author: Zdenek Zambersky <zzambers at openjdk.org>
URL: https://git.openjdk.org/jdk8u-dev/commit/6526a275b8f2c870b65b3de76c997a89c6244c1a
Stats: 11 lines in 1 file changed: 4 ins; 0 del; 7 mod
8371352: [8u] Fix VS2010 build issue in check_code.c
Reviewed-by: phh, andrew
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/713
More information about the jdk8u-dev
mailing list