From: Steve H. <st...@we...> - 2013-02-19 22:24:09
|
Hi, I'm curious what solutions others have come up with for dealing with java.util.Date in XMLVM. It seems that its toString() method depends on classes that are on the red list (e.g. XMLVM Error: Unsatisfied red class dependency: (java_util_SimpleTimeZone_1_run__):/Volumes/Windows VMS/NetbeansProjects/JSONBenchmark/SampleBusinessLogic/xmlvm_code_app/dist/../build/xcode/src/app/java_util_SimpleTimeZone_1.m:242 ). Most domain objects will require some kind of Date object so I don't want to just stop using Date. What are other people doing if they want to use Date objects in XMLVM? I started down the road of removing the offending classes from the red list, but the rabbit hole was going pretty deep (every class I add, creates more redlist dependencies). Thanks for any feedback. -Steve |
From: Arno P. <ar...@pu...> - 2013-02-20 00:09:40
|
the redlist.txt is hand-crafted. Manually fine-tuning it is the only way to change it. Perhaps you can run a test program that only makes use of java.util.Date on a standard JVM with option -verbose:class to see which classes are used. That might simplify the process of fine-tuning. Arno On 2/19/13 2:24 PM, Steve Hannah wrote: > Hi, > > I'm curious what solutions others have come up with for dealing with > java.util.Date in XMLVM. It seems that its toString() method depends > on classes that are on the red list (e.g. > XMLVM Error: Unsatisfied red class dependency: > (java_util_SimpleTimeZone_1_run__):/Volumes/Windows > VMS/NetbeansProjects/JSONBenchmark/SampleBusinessLogic/xmlvm_code_app/dist/../build/xcode/src/app/java_util_SimpleTimeZone_1.m:242 > ). > > Most domain objects will require some kind of Date object so I don't > want to just stop using Date. What are other people doing if they > want to use Date objects in XMLVM? > > I started down the road of removing the offending classes from the red > list, but the rabbit hole was going pretty deep (every class I add, > creates more redlist dependencies). > > Thanks for any feedback. > > -Steve > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Steve H. <st...@we...> - 2013-02-20 00:24:48
|
Thanks for the reply, Arno. I'll give that a shot. I have also now found that by compiling with alternate implementations of Date (and dependencies) taken from the cldc1.1.jar in the bootstrap classpath it works ok. Though I need to disable portions of URLConnection that rely on Date.parse() (which isn't implemented in the CLDC version). Steve On Tuesday, February 19, 2013, Arno Puder wrote: > > the redlist.txt is hand-crafted. Manually fine-tuning it is the only way > to change it. Perhaps you can run a test program that only makes use of > java.util.Date on a standard JVM with option -verbose:class to see which > classes are used. That might simplify the process of fine-tuning. > > Arno > > > On 2/19/13 2:24 PM, Steve Hannah wrote: > > Hi, > > > > I'm curious what solutions others have come up with for dealing with > > java.util.Date in XMLVM. It seems that its toString() method depends > > on classes that are on the red list (e.g. > > XMLVM Error: Unsatisfied red class dependency: > > (java_util_SimpleTimeZone_1_run__):/Volumes/Windows > > > VMS/NetbeansProjects/JSONBenchmark/SampleBusinessLogic/xmlvm_code_app/dist/../build/xcode/src/app/java_util_SimpleTimeZone_1.m:242 > > ). > > > > Most domain objects will require some kind of Date object so I don't > > want to just stop using Date. What are other people doing if they > > want to use Date objects in XMLVM? > > > > I started down the road of removing the offending classes from the red > > list, but the rabbit hole was going pretty deep (every class I add, > > creates more redlist dependencies). > > > > Thanks for any feedback. > > > > -Steve > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_feb > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... <javascript:;> > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > xmlvm-users mailing list > xml...@li... <javascript:;> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > -- Steve Hannah Web Lite Solutions Corp. |