This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: java/8939: Class files produced by gcj are incompatible with Sun's vm
- From: Tom Tromey <tromey at redhat dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 31 Dec 2002 16:16:03 -0000
- Subject: Re: java/8939: Class files produced by gcj are incompatible with Sun's vm
- Reply-to: Tom Tromey <tromey at redhat dot com>
The following reply was made to PR java/8939; it has been noted by GNATS.
From: Tom Tromey <tromey@redhat.com>
To: bhun@chello.nl
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/8939: Class files produced by gcj are incompatible with Sun's vm
Date: 31 Dec 2002 09:12:47 -0700
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> 395: invokespecial #223=<Method org.apache.tools.ant.taskdefs.Tar$TarCompressionMethod.compress (java.io.OutputStream)java.io.OutputStream>
Tom> The method in question is in fact private. Most likely there is
Tom> a special member class rule here that I'm unaware of; more
Tom> research required.
I looked some more. It turns out that the reason is obvious: the
method is private in another class. There is no special rule for a
member class; we simply can't call this method.
The JDK handles this case by adding an accessor method. That is what
we need to do as well.
Tom