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: Java finality


>>>>> "Chris" == Chris Burdess <dog@bluezoo.org> writes:

Chris> The results for gcj (recent CVS HEAD) on the same corpus show that
Chris> even the one change not permitted (albeit silently) by Sun's
Chris> implementation is effected without IllegalAccessException. The output
Chris> of FinalFieldChange is:
Chris>    Ng Keng Yap, 27 of IQ=150 from Malaysia
Chris> What are other people's thoughts on this matter?

Would you mind filing this in the gcc bugzilla?  Just a single bug,
say with a pointer to this thread, would be great.

"final" was always weird, really.  I've seen some texts out there say
that blank finals could only be set in <init> or <clinit>... but this
contradicts what many compilers actually do.  And afaik no runtime
ever checked that a blank final was only assigned once.

Also, System.{in,out,err} are final but you've always been able to
change them.  So there's at least one weird case to handle.

Tom


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