Description of problem:
The upstream version of 129-weblogic-catchall.windup.yam updated the conditions for weblogic-catchall-01000 to the following:
when: or: - java.referenced: location: IMPORT pattern: com.weblogic* - java.referenced: location: IMPORT pattern: com.bea* - java.referenced: location: IMPORT pattern: bea* - java.referenced: location: IMPORT pattern: weblogic*
However, weblogic* and bea* do not seem to work correctly.
Note: com.weblogic* and com.bea* seem to work as expected.
Version-Release number of selected component (if applicable): 7.3.1
How reproducible: always
Steps to Reproduce:
1. Create a simple Java project with an import like import weblogic.utils.Debug;.
2. Replace the MTA 7.3.1 version of 129-weblogic-catchall.windup.yaml with the upstream version which contains updated condition patterns.
3. Run MTA: ./mta-cli --log-level 100 analyze -s weblogic -t eap8 -i /path/to/java/project -o report --overwrite
Actual results:
weblogic-catchall-01000 does not find any issues.
Expected results:
weblogic-catchall-01000 should find the import weblogic.utils.Debug;.
Additional info:
Updating the pattern to weblogic.utils* will find the weblogic.utils.Debug import, but that will not help in the general case.
Seems like the best fix is to change the location from IMPORT to PACKAGE:
- java.referenced: location: PACKAGE pattern: bea* - java.referenced: location: PACKAGE pattern: weblogic*