This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gjavah and volatility
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: java at gcc dot gnu dot org
- Date: 26 Jan 2007 10:39:14 -0700
- Subject: Re: gjavah and volatility
- References: <17850.10033.952693.236915@zebedee.pink>
- Reply-to: tromey at redhat dot com
>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
Andrew> This in Java:
Andrew> static volatile SecurityManager current;
Andrew> generates this in CNI:
Andrew> static volatile ::java::lang::SecurityManager * current;
Andrew> but of course the object isn't volatile, the field is. It should be
Andrew> static ::java::lang::SecurityManager * volatile current;
Andrew> shouldn't it?
Yeah, oops. But do we even want to translate java volatile into c++
volatile?
Tom