Eww: Modifier.INTERPRETED overload

Andrew Haley aph-gcc@littlepinkcloud.COM
Wed May 30 17:44:00 GMT 2007


David Daney writes:
 > Tom Tromey wrote:
 > >>>>>> "Andrew" == Andrew Haley <aph-gcc@littlepinkcloud.COM> writes:
 > > 
 > > Andrew> This should, perhaps, ring an alarm bell.  Way back when this code was
 > > Andrew> written, classes weren't marked synthetic, but they are now!
 > > Andrew> So, any compiled class that is marked as SYNTHETIC is treated as
 > > Andrew> INTERPRETED by libgcj.  Bad Things Happen.
 > > 
 > > I'm sure this is my fault but I don't remember what I was thinking.
 > > 
 > > Andrew> We really need to find another way of marking classes as interpreted,
 > > 
 > > Yeah.
 > 
 > It's probably obvious, but why can't the value of the constant be changed?

Maybe, but access_flags is a u2, and there aren't many bits left.
0x80, perhaps?  It's used for VARARGS at the moment.

Andrew.



More information about the Java-patches mailing list