Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15445

Move WildFly Preview to a native jakarta namespace variant of openjdk-orb

XMLWordPrintable

      Integrate into WildFly Preview a native jakarta namespace variant of the openjdk-orb artifact the Galleon WildFly plugin is currently transforming when it builds the wildfly-preview feature pack or provisions a server using it.

      Verbose logging of the current transformation reveals the artifact is being transformed solely due to a single class's use of JTA:

      [INFO] Start processing [ com/sun/corba/se/impl/javax/rmi/CORBA/Util.class ] using [ CLASS ]
      [INFO] Class Reference: javax/transaction/TransactionRequiredException -> jakarta/transaction/TransactionRequiredException
      [INFO] Class Reference: javax/transaction/TransactionRolledbackException -> jakarta/transaction/TransactionRolledbackException
      [INFO] Class Reference: javax/transaction/InvalidTransactionException -> jakarta/transaction/InvalidTransactionException
      [INFO] UTF8: javax/transaction/TransactionRequiredException -> jakarta/transaction/TransactionRequiredException (resource)
      [INFO] UTF8: javax/transaction/TransactionRolledbackException -> jakarta/transaction/TransactionRolledbackException (resource)
      [INFO] UTF8: javax/transaction/InvalidTransactionException -> jakarta/transaction/InvalidTransactionException (resource)
      [INFO]   Class size: com/sun/corba/se/impl/javax/rmi/CORBA/Util.class: 17464 -> 17624
      

      Those calls are in the Util.mapSystemException method when it creates instances of the 3 classes noted above. I believe it would be simple enough to change that class to use reflection to create these instances, with Constructor object used to create the instances being based on the javax.transaction class or the jakarta.transaction class, depending on which is available.

            jperkins-rhn James Perkins
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: