From: Hiroo H. <hir...@co...> - 2004-09-19 16:53:21
|
I came up with an solution for this. By adding the following line onto Scene.java, I can load old scene file. static final long serialVersionUID = -7048122592493606437L; I found this by thinking how Patch file worked. The signature of Patch class also changed, but we can load old library files. I don't really understand how does this work. But I guess (hope) this works because the signature change is only changing Patch class to compatible IPatch interface. Let us know if you see any problem. Hiroo> You made a change in Scene.java; Hiroo> private Patch patch; Hiroo> into; Hiroo> private IPatch patch; Hiroo> Hiroo> This change breaks Scene file compatibility. Now JSynthLib in CVS head Hiroo> cannot read Scene file which was created before the change. This is bad. Hiroo> Hiroo> To keep file compatibility we need to revert the change on Scene.java Hiroo> and make a new Scene class (NScene ?) which uses IPatch so far. Hiroo> Hiroo> As a long term solution we need define new file format. One way is to Hiroo> use Storable class. Another way is XML base format as we discuss before. -- Hiroo Hayashi |