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

GrowableArrayView::print fails to compile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • hotspot
    • None
    • b19

      /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=]

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

              Created:
              Updated:
              Resolved: