Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-3283

Windup: ClassNotFoundException when a class inside Utils module is reused in the Bootstrap module

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • None
    • None
    • False
    • False
    • Hide
      * *Why we missed the bug?*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+


       * *What is required:*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+
      Show
      * *Why we missed the bug?*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+  * *What is required:*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+
    • ---
    • ---

      Reproduce the error:

      • Remove the "final" statements from utils/src/main/java/org/jboss/windup/util/Util.java  and make them like any other variable.
      • Use the Util.WINDUP_BRAND_NAME_LONG inside org.jboss.windup.bootstrap.listener#beforeStart
      • Build the windup project using "mvn install -Dskiptests"
      • Build the windup-distribution project using "mvn install -Dskiptests". Here you will see the ClassNotFoundException

      Here is a screenshot with the changes needed to reproduce the error:

      In case it helps, here is the source of the screenshot image above: Here are the code changes needed to reproduce the error: https://github.com/windup/windup/compare/master...carlosthe19916:classNotFoundException-error 

            Unassigned Unassigned
            cferiavi Carlos Esteban Feria Vila
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: