Nice/src/gnu/bytecode Field.java,1.7,1.8
Daniel Bonniot <[email protected]> Sat, 09 Apr 2005 17:45:34 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/src/gnu/bytecode
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31658/src/gnu/bytecode
Modified Files:
Field.java
Log Message:
Only omit ConstantValue attribute for non-final fields.
Index: Field.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/Field.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Field.java 8 Apr 2005 13:31:09 -0000 1.7
--- Field.java 9 Apr 2005 17:45:32 -0000 1.8
***************
*** 160,164 ****
private CpoolEntry addIfNotDefault(ConstantPool cpool, int value)
{
! if (value == 0)
// 0 is the default value, no need to specify it.
return null;
--- 160,164 ----
private CpoolEntry addIfNotDefault(ConstantPool cpool, int value)
{
! if (value == 0 && ! isFinal())
// 0 is the default value, no need to specify it.
return null;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click