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: switch constant issue


Tom Tromey writes:
 > >>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
 > 
 > Andrew> I guess this is OK, but I'm not sure.  It does rather break
 > Andrew> -fno-assume-compiled in that the constant uses early binding, so we
 > Andrew> might up with a different value for a constant that the one in its
 > Andrew> definition.
 > 
 > We just have to follow the Java language and binary compatibility
 > rules.  In this case, inlining the constant is correct, and in fact
 > required.

Or in this case the the Java language and binary compatibility
*in*compatibility rules!

 > Basically, this is a problem with Java for which the spec just
 > mandates a particular solution.  It isn't perfect; the standard class
 > libraries themselves change incompatibly from time to time :-(.  For
 > instance there is a constant in java.awt.event that changed in recent
 > memory (I forget which one offhand).

Eech.  Okay, you got me there.

Andrew.


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