Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JiBX 1.1 beta4
-
Component/s: core
-
Labels:None
-
Environment:J2ME
-
Number of attachments :
Description
It would be great having an offical jibx release for J2ME environments.
With respect to our code analysis in the current version only slight
modifications are necessary (below I have copied a part of the original post of Dirk Bade from the jibx-users list):
The only Problem is the usage of java.sql.Time, java.sql.Date and java.sql.Timestamp within the jibx.runtime.Utility-class.
If you simply remove the imports of these packages within the class and change the methods for serialization and deserialization
(using Object instead of java.sql.* in the method-signature) it works fine. And because java.sql.* is not
included in the 'Personal Profile' for mobile devices you won't miss the methods anyway. The binding-compiler does not like the changes in the method-signatures, so one has to use the original Utility-class for binding-compiling.
Added a separate Ant build target "j2me" to build J2ME versions of the distribution jars. This actually runs through all the tests and such, with the only difference being that all java.sql.* code is disabled.