This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/17013] gij vtable layout: hidden package-private method can be overridden


------- Additional Comments From mckinlay at redhat dot com  2004-08-12 22:10 -------
_Jv_LayoutVTableMethods() needs to check that classes are in the same package
before allowing a pkg-private method to be overriden. vtable layout for BC-ABI
most likely has the same bug. There is a FIXME in the code for this:

      // FIXME: Must check that we don't override:
      // - Package-private method where superclass is in different package.
      // - Final or less-accessible declaration in superclass (check binary 
      //   spec, do we allocate new vtable entry or put throw node in vtable?)
      // - Static or private method in superclass.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-12 22:10:24
               date|                            |
            Summary|gij vtable layout bug       |gij vtable layout: hidden
                   |                            |package-private method can
                   |                            |be overridden


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17013


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]