Hello Brice,
Brice Vandeputte wrote:
> 2014-12-10 11:27 GMT+01:00 Brice
>>
>>
>> I check "java.util.regex.Pattern" which is available since 1.4...
>> but this class seems not available on J9 JVM.
My J9 has no problems with it:
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Wed Dec 10 23:26:37 CET 2014
[INFO] Final Memory: 38M/100M
[INFO]
------------------------------------------------------------------------
: ~/src/Codehaus/xstream-1.4.x/xstream $ java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 Linux amd64-64
j9vmxa64142ifx-20110312 (JIT enabled)
J9VM - 20110202_74499_LHdSMr
JIT - 20090210_1447ifx2_r8
GC - 200902_24)
What kind of edition are you using?
>> I will maybe try to test an older version of xstream.
>
> Hey,
> using xstream 1.4.2 I've no "regex.Pattern" usage in the main XStream
> classes
> (only on some extended converters..)
> So this works now !
> (My need was only to be able to searialize in JSON a basic PoJo tree).
>
> A little question:
> for "embedded users" like me (using J9 JVM); how could we make
> possible to continue to use the latest xstream version ?
> maybe add an xstream improvment to migrate native "regex
> Pattern" usage to a dedicated dependency like "jakarta-regexp"(available
> in
> osgi 1.4) ? I don't know..
We can load the class dynamically. This happens already e.g. for the types
in the java.sql.* package that are also not available in some embedded envs.
Just open a JIRA issue (you have to create a full user account at
xircles.codehaus.org first).
Cheers,
Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email