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

Inconsistent results when running rules on Java 8 and Java 11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • None
    • None
    • MTA CLI
    • 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:_+
    • ---
    • ---
    • Sprint 215 AMM, Sprint 217 AMM

    Description

      The attached custom rule when executed against that attached java class has inconsistent results when executed on Java 8 compared to Java 11.

      When executed by the 5.2.1.Final version of the CLI using Java 8 both custom rules fired as expected.

      When executed by the 5.3.0-SNAPSHOT version of the CLI using Java 11 the rule that identifies the java.awt.Font.getPeer() method fails to fire.

      The command I used to execute the rule and generate the attached MTA Source Code Report screenshots was:

      ./mta-cli --input $HOME/temp --sourceMode --userRulesDirectory $HOME/CustomRules/java-internals-custom.windup.xml --output $HOME/MTA_Output/OpenJDK11internals --target cloud-readiness

      java-internals-custom.windup.xmlFontGetPeer.java

       

       

      Attachments

        1. FontGetPeer.java
          0.4 kB
          Philip Cattanach
        2. java-internals-custom.windup.xml
          2 kB
          Philip Cattanach
        3. JavaInternalsOnJDK11.png
          74 kB
          Philip Cattanach
        4. JavaInternalsOnJDK8.png
          90 kB
          Philip Cattanach
        5. Screenshot from 2022-03-28 14-18-54.png
          495 kB
          Shveta Sachdeva
        6. Screenshot from 2022-03-28 14-19-03.png
          120 kB
          Shveta Sachdeva
        7. Screenshot from 2022-03-28 14-20-33.png
          138 kB
          Shveta Sachdeva
        8. Screenshot from 2022-03-28 14-24-17.png
          499 kB
          Shveta Sachdeva
        9. Screenshot from 2022-03-28 14-24-32.png
          97 kB
          Shveta Sachdeva
        10. Screenshot from 2022-03-28 14-24-37.png
          115 kB
          Shveta Sachdeva
        11. Screenshot from 2022-03-28 22-42-14.png
          134 kB
          Shveta Sachdeva
        12. Screenshot from 2022-03-28 22-42-42.png
          128 kB
          Shveta Sachdeva
        13. Screenshot from 2022-03-29 07-54-57.png
          116 kB
          Shveta Sachdeva

        Issue Links

          Activity

            People

              jleflete@redhat.com Juanma Leflet Estrada
              pcattana Philip Cattanach
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: