New plan! We now post-process our class files and add individual public reader
and writer methods for private and protected fields. This will allow us to preserve the current read and write ordering and in the future when we "fix" read and write ordering, we won't be fucked by a bunch of generated methods that force the ordering. (Someone is using Presents on the CLR which turns out to take advantage of the loose specification of Class.getDeclaredFields() and not return them in declaration order, yay!). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4692 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -88,9 +88,12 @@
|
||||
<!-- generates readObject()/writeObject() for Stremable classes -->
|
||||
<target name="genstream">
|
||||
<taskdef name="genstream" classpathref="classpath"
|
||||
classname="com.threerings.presents.tools.GenStreamableTask"/>
|
||||
classname="com.threerings.presents.tools.InstrumentStreamableTask"/>
|
||||
<!-- now generate the associated files -->
|
||||
<genstream><fileset dir="src/java" includes="**/data/*.java"/></genstream>
|
||||
<genstream outdir="${classes.dir}">
|
||||
<path refid="classpath"/>
|
||||
<fileset dir="${classes.dir}" includes="**/data/*.class"/>
|
||||
</genstream>
|
||||
</target>
|
||||
|
||||
<!-- generates ActionScript versions of our Streamable classes -->
|
||||
|
||||
Reference in New Issue
Block a user