This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: gcj bug: case constants



Jeff Sturm writes:
> gcj throws an error compiling switch statements with "static final"
> elements as constants:

Which version of gcj are you using? If you want this kind of case
expression to compile, you need to bring gcj up to this patch:

  http://egcs.cygnus.com/ml/egcs-patches/1999-06/msg00351.html

Now, this fix in relatively new and probably still immature. Let me
know if you encounter further problems.

./A

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