[Ikvm-commit] ikvm/runtime TypeWrapper.cs,1.304,1.305
Brought to you by:
jfrijters
From: Jeroen F. <jfr...@us...> - 2009-07-29 09:37:12
|
Update of /cvsroot/ikvm/ikvm/runtime In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv8763/runtime Modified Files: TypeWrapper.cs Log Message: Implemented support for .NET serialization of Java enums. (The CreateEnumEnum move in FakeTypes.cs is because java.lang.Enum now has a dependency on custom attribute annotations.) Index: TypeWrapper.cs =================================================================== RCS file: /cvsroot/ikvm/ikvm/runtime/TypeWrapper.cs,v retrieving revision 1.304 retrieving revision 1.305 diff -C2 -d -r1.304 -r1.305 *** TypeWrapper.cs 29 Jul 2009 07:06:44 -0000 1.304 --- TypeWrapper.cs 29 Jul 2009 09:36:56 -0000 1.305 *************** *** 4585,4588 **** --- 4585,4592 ---- typeAttribs |= TypeAttributes.BeforeFieldInit; } + if(f.IsEnum) + { + typeAttribs |= TypeAttributes.Serializable; + } #if STATIC_COMPILER bool cantNest = false; |