public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/27925]  New: Trampolines not generated for private inner class methods.
@ 2006-06-07  0:41 csm at gnu dot org
  2006-06-07  0:42 ` [Bug java/27925] " csm at gnu dot org
  2006-06-07 18:06 ` mckinlay at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: csm at gnu dot org @ 2006-06-07  0:41 UTC (permalink / raw)
  To: java-prs

The attached test case compiles to bytecode wrong. It should generate a
package-private accessor function in the inner class that calls the private
method, which the containing class calls. Instead, the containing class calls
the private method directly, and no trampoline is created in the inner class.

This violates access rules, and thus the test case will not run.

Steps to reproduce:
gcj -C xxx.java
gij xxx

Expected results:
A line "This is foo!" is printed.

Actual results:
An exception is thrown:
Exception in thread "main" java.lang.IllegalAccessError: xxx: xxx$blargh.foo()V
   at xxx.main(xxx.java:5)

$ gcj --version
gcj (GCC) 4.2.0 20060606 (experimental)


-- 
           Summary: Trampolines not generated for private inner class
                    methods.
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: csm at gnu dot org


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


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

* [Bug java/27925] Trampolines not generated for private inner class methods.
  2006-06-07  0:41 [Bug java/27925] New: Trampolines not generated for private inner class methods csm at gnu dot org
@ 2006-06-07  0:42 ` csm at gnu dot org
  2006-06-07 18:06 ` mckinlay at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: csm at gnu dot org @ 2006-06-07  0:42 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from csm at gnu dot org  2006-06-07 00:42 -------
Created an attachment (id=11618)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11618&action=view)
Test case.

Test case.


-- 


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


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

* [Bug java/27925] Trampolines not generated for private inner class methods.
  2006-06-07  0:41 [Bug java/27925] New: Trampolines not generated for private inner class methods csm at gnu dot org
  2006-06-07  0:42 ` [Bug java/27925] " csm at gnu dot org
@ 2006-06-07 18:06 ` mckinlay at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: mckinlay at redhat dot com @ 2006-06-07 18:06 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from mckinlay at redhat dot com  2006-06-07 18:06 -------


*** This bug has been marked as a duplicate of 19870 ***


-- 

mckinlay at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-07  0:41 [Bug java/27925] New: Trampolines not generated for private inner class methods csm at gnu dot org
2006-06-07  0:42 ` [Bug java/27925] " csm at gnu dot org
2006-06-07 18:06 ` 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).