This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Binary Compatibility: vtable entries for final methods
- From: Andrew Haley <aph at redhat dot com>
- To: java at gcc dot gnu dot org
- Date: Thu, 13 May 2004 11:49:15 +0100
- Subject: Binary Compatibility: vtable entries for final methods
"Changing a class that was declared final to no longer be declared
final does not break [binary compatibility.]"
"Removing the final modifier from a method does not break [binary
compatibility.]"
So, our practice of making direct calls to final methods and not
generating vtable entries for them must cease. I'm minded to make an
exception for java.lang.Object, because we'd otherwise add a bunch of
vtable entries to every single class for no good reason.
Andrew.