IBM *HOTSPOT* Portability Bug - defect 6096

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.2.0
    • Component/s: hotspot
    • x86
    • windows_nt



      Name: mf23781 Date: 06/18/98


      Early June HotSpot Core source driver drop - portability issue.

      In the source file src\share\vm\memory\allocation.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.28 98/05/26 16:03:46 of allocation.hpp we replaced line #67:

        virtual void print_on(outputStream* st);

      with this:

        virtual void print_on(outputStream* st) const;

      and made a corresponding change in version 1.16 98/05/12 13:48:29
      of allocation.cpp at line #80


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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: