Tuesday, May 05, 2009

Feature [2676553] On The Way

Today, we plan to start work on feature [2676553]. This will be the key feature for our very exciting next major release - 1.0.5

First, I decide to review our "two-dimensional graphics framework" library. Currently, we are using JHotDraw. After several consideration, "stability", "requirement", "compatibility", we decide to stay on JHotDraw.

I foresee that we will be required to work on JHotDraw source code, either understand it or expanding from it. Hence, grabbing out the right JHotDraw source code is another big task.

Our previous JHotDraw version is 7. However, I have a hard time to figure out the minor version of current deployed JHotDraw. After some try and error, I decide to give up figuring out current JHotDraw minor version.

I decide to first port over JStock source code, to make use of latest JHotDraw 7.1. The latest stable version of JHotDraw 7.1 is released since 2008-03-25.

After building JHotDraw 7.1 together with quaqua.jar, java_30.zip and MRJAdapter, we obtain a hot baked JHotDraw 7.1. When run it together with JStock 1.0.4b, opps...


[yancheng@yancheng jstock]$ java -jar jstock.jar
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: org.yccheok.jstock.gui.OperatorFigure.add(Lorg/jhotdraw/draw/Figure;)V
at org.yccheok.jstock.gui.OperatorFigure.(OperatorFigure.java:70)
at org.yccheok.jstock.gui.LogicalOperatorFigure.(LogicalOperatorFigure.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
...


Look like we have some work to be done :)

No comments:

Followers