XStream
  1. XStream
  2. XSTR-151

Class.forName should be changed to Thread.currentThread().getContextClassLoader().loadClass

    Details

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

      Description

      Due to ClassCastExceptions after JBoss hot deploy issue, I am wondering if changing Class.forName() to Thread.currentThread().getContextClassLoader().loadClass() as recommended by JBoss and this should also work on normal case.

      The problem is classes are getting cached and I am not sure if this will fix the problem but atleast it will eliminate this option.

      Amad

        People

        • Assignee:
          Unassigned
          Reporter:
          Amad Fida
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: