jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • XStream
  • XSTR-438

Please add SAP JVM as a recognized VM

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • JDK version and platform:
    SAP JVM (any version)

Description

We have had bug reports from customers claiming that XStream did not work properly for them if they used SAP's own Java VM. We have been able to track this down to the code in XStream where the Java VM vendor is checked.

Please add the SAP JVM to the list of VMS that can use a Sun14 reflection provider. The implementation of SAP JVM is very close to the Sun VM and it is therefore safe to assume that implementation specific tricks using reflection and sun.misc.Unsafe that work on the Sun VM will also work on SAP JVM. Our tests have confirmed that so far.

The SAP JVM reports java.vm.vendor as 'SAP AG'.

Specifically, we would suggest that in the class com.thoughtworks.xstream.core.JVM the following method be added:
private static boolean isSAP() { return System.getProperty("java.vm.vendor").indexOf("SAP AG") != -1; }

and that in the method canUseSun14ReflectionProvider() an appropriate "|| isSAP()" be added.

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. XSTR-431 xStream unable to use Sun14ReflectionProvider with SAP VM

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • History
  • Activity
Hide
Permalink
Joerg Schaible added a comment - 02/Oct/07 7:26 AM

Norbert,
I close this issue as duplicate. Although it is probably that your proposed changes are enough, we cannot be sure. See my comments at the duplicate XSTR-431. Since you're employee from SAP you might be able to help to resolve this completely. Thanks a lot.

  • Jörg
Show
Joerg Schaible added a comment - 02/Oct/07 7:26 AM Norbert, I close this issue as duplicate. Although it is probably that your proposed changes are enough, we cannot be sure. See my comments at the duplicate XSTR-431. Since you're employee from SAP you might be able to help to resolve this completely. Thanks a lot.
  • Jörg

People

  • Assignee:
    Unassigned
    Reporter:
    Norbert Kuck
Vote (0)
Watch (0)

Dates

  • Created:
    02/Oct/07 7:11 AM
    Updated:
    02/Oct/07 7:26 AM
    Resolved:
    02/Oct/07 7:26 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.