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

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] 2+ messages in thread

* [Bug libgcj/20047] runtime 'protected' access checks
  2005-02-18 14:53 [Bug libgcj/20047] New: runtime 'protected' access checks tromey at gcc dot gnu dot org
@ 2005-02-18 16:48 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-18 16:48 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-18 04:52 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-18 04:52:41
               date|                            |


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-18  4:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-18 14:53 [Bug libgcj/20047] New: runtime 'protected' access checks tromey at gcc dot gnu dot org
2005-02-18 16:48 ` [Bug libgcj/20047] " pinskia at gcc dot gnu dot org

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).