RFR 7041262: VM_Version should be called instead of Abstract_VM_Version so that overriding works
Kim Barrett
kim.barrett at oracle.com
Wed Oct 17 20:38:29 UTC 2018
> On Oct 15, 2018, at 10:27 PM, David Holmes <david.holmes at oracle.com> wrote:
>
> Hi Kim,
>
> On 16/10/2018 10:58 AM, Kim Barrett wrote:
>>> On Oct 15, 2018, at 6:58 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
>>>
>>> Stupid question. Why keep empty static methods in Abstract_VM_Version which are never used?
>> The empty methods are the defaults, for platforms that don’t extend or override the behavior.
>
> Sorry basic C++ question: so if we have
>
> class Base {
> public:
> static void init() { }
> }
>
> class Derived : public Base {
> }
>
> and some other code has:
>
> Derived::init();
>
> then this is legal and calls base::init() ?
Yes.
More information about the hotspot-runtime-dev
mailing list