[11u] RFR: 8256483: [TESTBUG] serviceability/jvmti/GetClassMethods/libOverpassMethods.c fails to compile on gcc 4.4.x
Aleksey Shipilev
shade at redhat.com
Wed Nov 18 11:18:31 UTC 2020
On 11/18/20 11:25 AM, Severin Gehwolf wrote:
> diff --git a/test/hotspot/jtreg/serviceability/jvmti/GetClassMethods/libOverpassMethods.c b/test/hotspot/jtreg/serviceability/jvmti/GetClassMethods/libOverpassMethods.c
> --- a/test/hotspot/jtreg/serviceability/jvmti/GetClassMethods/libOverpassMethods.c
> +++ b/test/hotspot/jtreg/serviceability/jvmti/GetClassMethods/libOverpassMethods.c
> @@ -95,7 +95,8 @@
> return NULL;
> }
>
> - for (int i = 0; i < method_count; i++) {
> + int i;
> + for (i = 0; i < method_count; i++) {
> jint modifiers = 0;
> err = JNI_ENV_PTR(jvmti)->GetMethodModifiers(JNI_ENV_ARG2(jvmti, methods[i], &modifiers));
> if (err != JVMTI_ERROR_NONE) {
>
>
> Testing: Build of test-image target proceeds with it in place.
>
> Thoughts?
First thought: ew.
Looks okay.
--
-Aleksey
More information about the jdk-updates-dev
mailing list