On Tue, 21 Apr 2026 14:54:08 GMT, Julian Waters <[email protected]> wrote:

> What error is shown when the virtual destructor approach is used, out of 
> curiosity?

gcc reports this



/jdk/src/hotspot/share/oops/klass.hpp:62:7: error: deleted function 'virtual 
Klass::~Klass()' overriding non-deleted function
   62 | class Klass : public Metadata {
      |       ^~~~~

-------------

PR Comment: https://git.openjdk.org/jdk/pull/30771#issuecomment-4289969668

Reply via email to