Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-5621

Camel rule java-generic-information-00002 has false positives

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • MTA 8.0.0
    • MTA 7.3.0
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • Low
    • None

      Description of problem:

      Camel rule java-generic-information-00002 fires for all classes that extend org.apache.camel.builder.RouteBuilder, rather than just those that extend RouteBuilder and include ".zip()" or ".gzip()".

      Version-Release number of selected component (if applicable):

      version: 7.3.0

      SHA: 902ae5744dd8b5c7a0ec68a5b31bb99b5df13838
      image: registry.redhat.io/mta/mta-cli-rhel9:7.3.0 

      How reproducible:

      100% of the time, when using "camel" as the source and target technologies and a class that extends org.apache.camel.builder.RouteBuilder

      Steps to Reproduce:
      1. Obtain a repository that has a RouteBuilder (e.g. https://github.com/rhtconsulting/fuse-quickstarts)
      2. Analyze the repo using the "camel" technologies, e.g. "./mta-cli analyze -s camel -t camel -i /path/to/fuse-quickstarts/ -o ./report/all --overwrite -m source-only
      3. View the report

      Actual results:

      The rule fires for all classes extending RouteBuilder 

      Expected results:

       The rule only fires for RouteBuilder classes that use .zip() or .gzip() (the example repository in step (1) contains no such classes)

      Additional info:

      There's also a typo in the "message" of the rule (a missing closing backtick), I will fix that in the PR as well.

        1. Screenshot From 2025-06-25 17-09-03.png
          139 kB
          Trevor Terris
        2. image-2025-08-28-16-34-46-138.png
          236 kB
          Shveta Sachdeva

              jleflete@redhat.com Juanma Leflet Estrada
              tterris@redhat.com Trevor Terris (Inactive)
              Shveta Sachdeva Shveta Sachdeva
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: