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

GrowableArrayView::print fails to compile

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 16
    • 16
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: