XStream
  1. XStream
  2. XSTR-152

JVM.bestReflectionProvider should rely on system properties

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: None
    • Labels:
      None

      Description

      JVM attempts to load the sun.misc.Unsafe class to
      detect if Sun14ReflectionProvider is the best to use.
      The problem is that some JDKs ship with the class
      (eg BEA JRockit) but attempting to load it yields a
      linkage error rather than a class not found exception.

      To be fail-proof it would be better to use system
      properties to detect if the VM vendor is Sun.

        People

        • Assignee:
          Unassigned
          Reporter:
          Mauro Talevi
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: