Jvmti test fails to build with VS2017

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 11
    • Component/s: hotspot
    • b17
    • windows

        One of the newly converted Jvmti tests fails to compile with VS2017:

        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): error C2220: warning treated as error - no 'object' file generated
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): warning C4477: 'printf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type 'jlong'
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%lld' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%Id' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%I64d' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): warning C4477: 'printf' : format string '%ld' requires an argument of type 'long', but variadic argument 3 has type 'jlong'
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%lld' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%Id' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%I64d' in the format string
        JtregNativeHotspot.gmk:210: recipe for target '/cygdrive/c/erik/jdk/build/windows-x64/support/test/hotspot/jtreg/native/support/libtimers/libtimers.obj' failed

              Assignee:
              Daniil Titov (Inactive)
              Reporter:
              Erik Joelsson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: