XStream
  1. XStream
  2. XSTR-765

XStream latest version (1.4.7) is not working on old J9JVM (java.util.regex.Pattern package missing)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.4.2, 1.4.7
    • Fix Version/s: None
    • Component/s: Converters, Core
    • Labels:
      None
    • JDK version and platform:
      J9VM - 20080409_018613_lEdFGQ

      Description

      On old J9JVM version (cf. details under); the following package is unavailable: java.util.regex.* (eg. java.util.regex.Pattern)

      XStream 1.4.2 uses this package in some extended converters only.
      XStream 1.4.7 uses this package in the main XStream core class.

      Following the MLUsers discussion:
      http://thread.gmane.org/gmane.comp.java.xstream.user/8797

      @Jorg says :
      >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.

      Possible ways to fix this issue:

      • put in the official website the minimal J9JVM version (eg. J9JVM > 2011)
      • add regex package if missing (as Jorg says ?)

      Today on my current J9JVM version, I can't use the latest XStream version (only 1.4.2 and without some converters). I mark this issue as major as this issue is non blocking for me.

      @Jorg report that on J9JVM 2011 version; the regex package is here.

      -----------------
      J9JVM used :
      j9_2.4_jclFoundation11_ARM_Linux/bin/j9 -version

      java version "WECE J2ME Foundation Specification v1.1"
      IBM J9 2.4 Linux arm-32 (JIT enabled)
      J9VM - 20080409_018613_lEdFGQ
      JIT - r9.weme62_20071207_2130ifx2
      GC - 20080229_AA
      MD - 20110302_release_1.00_23801
      JCL - 20080409_1632,foun11

        Activity

        Brice Vandeputte made changes -
        Field Original Value New Value
        Description On old J9JVM version (cf. details under); the following package is unavailable: java.util.regex.* (eg. java.uitil.regex.Pattern)

        XStream 1.4.2 uses this package in some extended converters only.
        XStream 1.4.7 uses this package in the main XStream core class.

        Following the MLUsers discussion:
          http://thread.gmane.org/gmane.comp.java.xstream.user/8797

        @Jörg says :
        >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.

        Possible ways to fix this issue:
        - put in the official website the minimal J9JVM version (eg. J9JVM > 2011)
        - add regex package if missing (as Jörg says ?)

        Today on my current J9JVM version, I can't use the latest XStream version (only 1.4.2 and without some converters). I mark this issue as major as this issue is non blocking for me.

        @Jörg report that on J9JVM 2011 version; the regex package is here.

        -----------------
        J9JVM used :
        j9_2.4_jclFoundation11_ARM_Linux/bin/j9 -version

        java version "WECE J2ME Foundation Specification v1.1"
        IBM J9 2.4 Linux arm-32 (JIT enabled)
        J9VM - 20080409_018613_lEdFGQ
        JIT - r9.weme62_20071207_2130ifx2
        GC - 20080229_AA
        MD - 20110302_release_1.00_23801
        JCL - 20080409_1632,foun11
        On old J9JVM version (cf. details under); the following package is unavailable: java.util.regex.* (eg. java.util.regex.Pattern)

        XStream 1.4.2 uses this package in some extended converters only.
        XStream 1.4.7 uses this package in the main XStream core class.

        Following the MLUsers discussion:
          http://thread.gmane.org/gmane.comp.java.xstream.user/8797

        @Jorg says :
        >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.

        Possible ways to fix this issue:
        - put in the official website the minimal J9JVM version (eg. J9JVM > 2011)
        - add regex package if missing (as Jorg says ?)

        Today on my current J9JVM version, I can't use the latest XStream version (only 1.4.2 and without some converters). I mark this issue as major as this issue is non blocking for me.

        @Jorg report that on J9JVM 2011 version; the regex package is here.

        -----------------
        J9JVM used :
        j9_2.4_jclFoundation11_ARM_Linux/bin/j9 -version

        java version "WECE J2ME Foundation Specification v1.1"
        IBM J9 2.4 Linux arm-32 (JIT enabled)
        J9VM - 20080409_018613_lEdFGQ
        JIT - r9.weme62_20071207_2130ifx2
        GC - 20080229_AA
        MD - 20110302_release_1.00_23801
        JCL - 20080409_1632,foun11
        Hide
        Jörg Schaible added a comment -

        Hello Brice,

        originally I thought we can load the classes java.util.regex.* dynamically, but those classes are not only used in converters, but also in some core elements and they are since version 1.4.7 even part of the public XStream API, so we are not able to switch to something else for internal use. Therefore I see no way to provide an official support for this old JVM version, sorry.

        Show
        Jörg Schaible added a comment - Hello Brice, originally I thought we can load the classes java.util.regex.* dynamically, but those classes are not only used in converters, but also in some core elements and they are since version 1.4.7 even part of the public XStream API, so we are not able to switch to something else for internal use. Therefore I see no way to provide an official support for this old JVM version, sorry.
        Hide
        Brice Vandeputte added a comment -

        Ok Jörg, no problem
        I should keep an old Xstream version to be compatible with device that use an old JVM version.
        thanks for your answer

        Show
        Brice Vandeputte added a comment - Ok Jörg, no problem I should keep an old Xstream version to be compatible with device that use an old JVM version. thanks for your answer
        Jörg Schaible made changes -
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Jörg Schaible made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Brice Vandeputte
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: