[Bug java/26720] New: Can't find method 'access$1(I)'

sjackman at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 16 18:35:00 GMT 2006


In the following test, gcj fails to generate an access method for the private
static members of type char, byte, and short, although it does generate the
access method for the private static members of type int and Object.

class AccessTest {
       public interface Foo {
               public void foo();
       }

       private static char buggy_char;
       private static byte buggy_byte;
       private static short buggy_short;
       private static int i;
       private static Object o;

       static {
               new Foo() {
                       public void foo() {
                               buggy_char = 0;
                               buggy_byte = 0;
                               buggy_short = 0;
                               i = 0;
                               o = null;
                       }
               };
       }
}


-- 
           Summary: Can't find method 'access$1(I)'
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sjackman at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



More information about the Java-prs mailing list