Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3975

Add a privileged block when loadAndInstantiateClass in invoked

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 7.next
    • 7.2.0.Final
    • None
    • None

      The privileged block is needed for the security manager (which is deprecated but still included in jdk 17 and 21) when running Class.getDeclaredContructor().
      I.e. in the ClassloadingUtility.loadAndInstantiateClass(ClassloadingUtility.java:124) the Class.getDeclaredContructor() in invoked so an extra check is needed to make sure the methods using it implement the privileged block.

              rh-ee-msappegr Marco Sappe Griot
              rh-ee-msappegr Marco Sappe Griot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: