public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/20047] New: runtime 'protected' access checks
@ 2005-02-18 14:02 tromey at gcc dot gnu dot org
  2005-02-18 15:23 ` [Bug libgcj/20047] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-02-18 14:02 UTC (permalink / raw)
  To: gcc-bugs

Various jvm opcodes such as "invokespecial" and "getfield"
have runtime restrictions on access to protected members.
For instance, when using getfield, the object reference must
be the current class or a subclass of it.
These access checks are not currently performed.  They should be.
In some cases it may be possible to determine this statically,
or to treat it as equivalent to a runtime type assertion.
I'm not sure this can be done in all cases; some testing is required.
(The question is really whether the verifier catches this during
its modeling, or whether the check is performed during execution.)

-- 
           Summary: runtime 'protected' access checks
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <bug-20047-360@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-06-01 11:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-18 14:02 [Bug libgcj/20047] New: runtime 'protected' access checks tromey at gcc dot gnu dot org
2005-02-18 15:23 ` [Bug libgcj/20047] " pinskia at gcc dot gnu dot org
     [not found] <bug-20047-360@http.gcc.gnu.org/bugzilla/>
2006-06-01 11:07 ` mckinlay at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).