Description of problem:
RuleID: javax-to-jakarta-servlet-00040
Method getServlet in javax.servlet.ServletContext has been removed.
Version-Release number of selected component (if applicable):
mta-operator-bundle-container-7.1.0-24
How reproducible:
100%
Steps to Reproduce:
1. Start analysis using uploaded binary file: acmeair-webapp-1.0-SNAPSHOT.war
2. Set targets: Jakarta EE 9
3. Submit analysis
Actual results:
False positive examples:
String path = request.getServletPath() + request.getPathInfo();
Attachments:
[^analysis-report-app-upgrade-uploadBinaryApp.yaml]
Additional info:
Same behavior is reproducible with RuleID: javax-to-jakarta-servlet-00070