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

IBM *HOTSPOT* Portability Bug - defect 6097

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.0
    • 1.2.0
    • hotspot
    • alpha2
    • x86
    • windows_nt
    • Not verified



      Name: mf23781 Date: 06/18/98


      Early June HotSpot Core source driver drop - portability issue.

      In the source file src\share\vm\runtime\stackValue.hpp & cpp the
      definition of the method print_on() which overrides a virtual
      function in super class is not declared to be a 'const' method
      while it is in the super class. Because the definitions do not
      match exactly this results in the local print_on method hiding
      rather than overriding the virtaul print_on method in the super
      class.

      Since it seems likely that the local print_on method should be
      a 'const' we changed the definition to match the virtaul method
      definition and the compiler warning stopped.

      In version 1.15 98/05/01 of stackValue.hpp we replaced line #59:

        void print_on(outputStream* st);

      with this:

        void print_on(outputStream* st) const;

      and made a corresponding change in version 1.9 98/05/08
      of stackValue.cpp at line #17


      ======================================================================

            lbaksunw Lars Bak (Inactive)
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: