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

RHAMT Cli Script erroneously identifying a version of Java 8 as Java 11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 4.2.1.Final
    • MTA CLI
    • None

    Description

      There's a bug in the rhamt-cli script that was introduced in this change (JDK 11 Compatibility):

      https://github.com/windup/windup-distribution/pull/56

      This line specifically:

      https://github.com/windup/windup-distribution/pull/56/commits/bc50276b58b29d8351c1263d310b8a9680e37300#diff-dbddab6eb7b2c922628ae82d086a94ddR200

      When a user with JVM version/build of 1.8.0_131-b11 runs the rhamt-cli script, it will meet the above "11") condition, and append the "--add-modules=java.se" option, which is not supported in Java 8, and causes the JVM to crash.

      The fix might be as simple as changing the "11 condition to "11. so the b11 substring no longer satisfies the seslection critreria.

      Attachments

        Activity

          People

            jvilalop@redhat.com Jonathan Vila Lopez (Inactive)
            pcattana Philip Cattanach
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: