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

GrowableArrayView::print fails to compile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b19

      Description

      /oracle/jdk/open/src/hotspot/share/utilities/growableArray.hpp:299:16: error: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'GrowableArrayView<CodeHeap*>*' [-Werror=format=]
        299 | tty->print("Growable Array " INTPTR_FORMAT, this);
      /oracle/jdk/open/src/hotspot/share/utilities/growableArray.hpp:300:16: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Werror=format=]
        300 | tty->print(": length %ld (_max %ld) { ", _len, _max);
            | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
            | |
            | int
      /oracle/jdk/open/src/hotspot/share/utilities/growableArray.hpp:300:16: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Werror=format=]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thartmann Tobias Hartmann
              Reporter:
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: