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
======================================================================
- duplicates
-
JDK-4150095 IBM *HOTSPOT* Portability Bug - defect 6097
-
- Closed
-