This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: Can't find method 'access$1(I)'


On 3/14/06, Ranjit Mathew <rmathew@gmail.com> wrote:
> Shaun Jackman wrote:
> > In attempting to compile Azureus 2.4.0.0 with gcj 4.1, I ran into the error
> >
> >       Can't find method 'access$1(I)'
>
> It could be related to PR java/19870:
>
>   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19870
>
> and its fix. Would you be able to reduce the testcase a
> bit and file a PR?

Hello Ranjit,

Is there an email address for PR java/19870 that I can cc?

I've reduced my issue to a nice self-contained test case. It's a bit
strange though, in that in only affects private static members of
types byte and short, and char, and not members of type int or object
reference.

Should this issue be added to java/19870 or should a new PR be created?

Cheers,
Shaun

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;
			}
		};
	}
}

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