Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8203802

Jvmti test fails to build with VS2017

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b17
    • OS:
      windows

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dtitov Daniil Titov
                  Reporter:
                  erikj Erik Joelsson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: